From: b3nj4m1n Date: Sat, 14 May 2022 10:35:31 +0000 (+0200) Subject: Use = instead of == X-Git-Tag: v0.2.0.0~79 X-Git-Url: https://glassweightruler.freedombox.rocks/gitweb/xdg-ninja.git/commitdiff_plain/22566a147329dacfb1e364f0f850616c8c22dc15 Use = instead of == --- diff --git a/xdg-ninja.sh b/xdg-ninja.sh index 5a51bc6..ee84cf0 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 printf "%b" "$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