From: b3nj4m1n Date: Sat, 14 May 2022 10:24:30 +0000 (+0200) Subject: Quote $i X-Git-Tag: v0.2.0.0~81 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/3184a4a4678e5ed471e2678718d5894e43184e88 Quote $i --- diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 2f3b5f8..bb5339c 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -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