From: Layerex Date: Tue, 24 May 2022 19:22:36 +0000 (+0300) Subject: Use test for "$MOVABLE" in check_file function (#66) X-Git-Tag: v0.2.0.0~14 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/e2accd7cb8598500c7f5d799964476f73ac4fc56?ds=sidebyside Use test for "$MOVABLE" in check_file function (#66) To avoid executing it's value --- diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 6c8a2f2..3c9054a 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -157,7 +157,7 @@ check_file() { ;; 1) - if "$MOVABLE"; then + if [ "$MOVABLE" ]; then log ERR "$NAME" "$FILENAME" "$HELP" else log WARN "$NAME" "$FILENAME" "$HELP"