1
0
Fork 0

run: exit with error on unrecognized argument

This commit is contained in:
Sebastien Bourdeauducq 2020-07-04 17:54:03 +08:00
parent 9edd6f374d
commit a56abe8830
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ impure=0
while getopts "h:i" opt; do while getopts "h:i" opt; do
case "$opt" in case "$opt" in
\?) exit 0 \?) exit 1
;; ;;
i) impure=1 i) impure=1
;; ;;

View File

@ -9,7 +9,7 @@ impure_dir="build"
while getopts "h:id:" opt; do while getopts "h:id:" opt; do
case "$opt" in case "$opt" in
\?) exit 0 \?) exit 1
;; ;;
h) target_host=$OPTARG h) target_host=$OPTARG
;; ;;