aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2024-02-28 17:27:16 +0000
committerMatthew Lemon <y@yulqen.org>2024-02-28 17:27:16 +0000
commit35350e37528635d4ff43c2dcccfa4bdec87350c2 (patch)
tree24f763d26a777d341c352dd62c60dd1cab363c2d
parent49f584e813fc4daa9702cd533de7725752ac990a (diff)
Fixed for debian batcat
-rwxr-xr-xbatnote5
1 files changed, 5 insertions, 0 deletions
diff --git a/batnote b/batnote
index 3e5502e..a050e87 100755
--- a/batnote
+++ b/batnote
@@ -10,6 +10,11 @@ CAT=/usr/bin/cat
#LESS=/usr/bin/less
VIM=/usr/bin/vim
+# it is batcat on Debian hosts
+if [[ -x /usr/bin/batcat ]]; then
+ BAT=/usr/bin/batcat
+fi
+
set -e
CMD="$BAT"