diff options
author | Levente Polyak <anthraxx@archlinux.org> | 2022-08-31 02:13:00 +0200 |
---|---|---|
committer | Levente Polyak <anthraxx@archlinux.org> | 2022-08-31 02:26:47 +0200 |
commit | 53be0527e2c9285476a27331ad1851819e849c45 (patch) | |
tree | aba01b8e80cc5d7880c8a1940967b6e8c0693aea /src | |
parent | f4e8047d654254bbd3614ecaa448b41fa1f056d7 (diff) | |
download | devtools-53be0527e2c9285476a27331ad1851819e849c45.tar.xz |
fix: properly check for invalid argument in checkpkg and diffpkg
The option switch case only matches by splitting via '|' instead of ','
Diffstat (limited to 'src')
-rw-r--r-- | src/checkpkg.in | 2 | ||||
-rw-r--r-- | src/diffpkg.in | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/checkpkg.in b/src/checkpkg.in index da4c67b..1a7983c 100644 --- a/src/checkpkg.in +++ b/src/checkpkg.in @@ -52,7 +52,7 @@ while (( $# )); do shift break ;; - -*,--*) + -*|--*) die "invalid argument: %s" "$1" ;; *) diff --git a/src/diffpkg.in b/src/diffpkg.in index 5bae805..b964d44 100644 --- a/src/diffpkg.in +++ b/src/diffpkg.in @@ -129,7 +129,7 @@ while (( $# )); do shift break ;; - -*,--*) + -*|--*) die "invalid argument: %s" "$1" ;; *) |