Skip to content

Commit c58946e

Browse files
committed
bug fix: reject invalid -a
1 parent d7c3da7 commit c58946e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

install

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,8 @@ while getopts ':hqd:a:f:u:' opt "$@"; do
123123
algos="$algos $OPTARG"
124124
;;
125125
*)
126-
if [ -z "$OPTARG" ]; then
127-
>&2 echo "[error] incorrect value of $opt: $OPTARG"
128-
exit 1
129-
fi
126+
>&2 echo "[error] incorrect value of $opt: $OPTARG"
127+
exit 1
130128
;;
131129
esac
132130
;;

0 commit comments

Comments
 (0)