]> glassweightruler.freedombox.rocks Git - xdg-ninja.git/commitdiff
Quote $i
authorb3nj4m1n <b3nj4m1n@gmx.net>
Sat, 14 May 2022 10:24:30 +0000 (12:24 +0200)
committerb3nj4m1n <b3nj4m1n@gmx.net>
Sat, 14 May 2022 10:24:30 +0000 (12:24 +0200)
xdg-ninja.sh

index 2f3b5f82a00f12124597f6db6e310b2a2df8afaf..bb5339c17a768c93fc02a870eb4e3c6d210dde6b 100755 (executable)
@@ -31,14 +31,14 @@ HELPSTRING="""\
 
 SKIP_OK=true
 for i in "$@"; do
-    if [ $i == "--help" ] || [ $i == "-h" ]; then
+    if [ "$i" == "--help" ] || [ "$i" == "-h" ]; then
         echo -e "$HELPSTRING"
         exit
-    elif [ $i == "--skip-ok" ]; then
+    elif [ "$i" == "--skip-ok" ]; then
         SKIP_OK=true
-    elif [ $i == "--no-skip-ok" ]; then
+    elif [ "$i" == "--no-skip-ok" ]; then
         SKIP_OK=false
-    elif [ $i == "-v" ]; then
+    elif [ "$i" == "-v" ]; then
         SKIP_OK=false
     fi
 done