]> Freerunner's - dotfiles.git/commitdiff
lf: chafa wrapper - fix path for opensuse
authorAndre Ramnitz <tux.rising@gmail.com>
Sun, 30 Mar 2025 01:04:27 +0000 (03:04 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sun, 30 Mar 2025 01:04:27 +0000 (03:04 +0200)
dot-local/bin/chafa

index 0954d745ec631cd2babb188af761ad02261546fd..58da983bbdad323aef01b33852e38361a9ae10f6 100755 (executable)
@@ -1,4 +1,10 @@
-#!/bin/sh
+#!/bin/bash
 
-exec /usr/sbin/chafa --polite=on "$@"
+if [[ -f /usr/sbin/chafa ]]; then
+    exec /usr/sbin/chafa --polite=on "$@"
+elif [[ -f /usr/bin/chafa ]]; then
+    exec /usr/bin/chafa --polite=on "$@"
+else
+    echo "Error, chafa executable not found in \$PATH"
+fi