]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Use test for "$MOVABLE" in check_file function (#66)
authorLayerex <layerex@dismail.de>
Tue, 24 May 2022 19:22:36 +0000 (22:22 +0300)
committerGitHub <noreply@github.com>
Tue, 24 May 2022 19:22:36 +0000 (21:22 +0200)
To avoid executing it's value

xdg-ninja.sh

index 6c8a2f200daff1e819659bd4fc10206c8d2a6522..3c9054a060210605429d0432cc70c700b0827353 100755 (executable)
@@ -157,7 +157,7 @@ check_file() {
         ;;
 
     1)
         ;;
 
     1)
-        if "$MOVABLE"; then
+        if [ "$MOVABLE" ]; then
             log ERR "$NAME" "$FILENAME" "$HELP"
         else
             log WARN "$NAME" "$FILENAME" "$HELP"
             log ERR "$NAME" "$FILENAME" "$HELP"
         else
             log WARN "$NAME" "$FILENAME" "$HELP"