X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/blobdiff_plain/0e4ada6e9f469f9eafe61f8335fc3cd01927f878..de677c0389e6fc545877e8eae4e47f0106be355f:/xdg-ninja.sh diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 6c8a2f2..e398f4a 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -129,9 +129,9 @@ log() { ;; HELP) - if $USE_GLOW; then + if [ "$USE_GLOW" = true ]; then decode_string "$HELP" | glow - - elif $USE_BAT; then + elif [ "$USE_BAT" = true ]; then decode_string "$HELP" | bat -pp --decorations=always --color=always --language markdown else decode_string "$HELP" @@ -157,7 +157,7 @@ check_file() { ;; 1) - if "$MOVABLE"; then + if [ "$MOVABLE" = true ]; then log ERR "$NAME" "$FILENAME" "$HELP" else log WARN "$NAME" "$FILENAME" "$HELP"