fix: properly check for invalid argument in checkpkg and diffpkg

The option switch case only matches by splitting via '|' instead of ','
This commit is contained in:
Levente Polyak 2022-08-31 02:13:00 +02:00
parent f4e8047d65
commit 53be0527e2
No known key found for this signature in database
GPG Key ID: FC1B547C8D8172C8
2 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ while (( $# )); do
shift shift
break break
;; ;;
-*,--*) -*|--*)
die "invalid argument: %s" "$1" die "invalid argument: %s" "$1"
;; ;;
*) *)

View File

@ -129,7 +129,7 @@ while (( $# )); do
shift shift
break break
;; ;;
-*,--*) -*|--*)
die "invalid argument: %s" "$1" die "invalid argument: %s" "$1"
;; ;;
*) *)