diff options
author | Dave Reisner <dreisner@archlinux.org> | 2014-10-19 16:43:13 -0400 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2014-10-19 19:36:31 -0400 |
commit | 28140068ce22cc15fc155570f33e0bdaae22de9c (patch) | |
tree | f0e76d37e14c145dde55c7670f9c752268f57357 /makechrootpkg.in | |
parent | bf7dc83bab4f002a29866fd30b1574b6fbca36aa (diff) | |
download | devtools32-28140068ce22cc15fc155570f33e0bdaae22de9c.tar.xz |
makechroot: die if we encounter an unexpected option
Diffstat (limited to 'makechrootpkg.in')
-rw-r--r-- | makechrootpkg.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/makechrootpkg.in b/makechrootpkg.in index 8957974..1fbd3b4 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -70,7 +70,6 @@ orig_argv=("$@") while getopts 'hcur:I:l:nTD:d:' arg; do case "$arg" in - h) usage ;; c) clean_first=true ;; D) bindmounts_ro+=(--bind-ro="$OPTARG") ;; d) bindmounts_rw+=(--bind="$OPTARG") ;; @@ -80,6 +79,7 @@ while getopts 'hcur:I:l:nTD:d:' arg; do l) copy="$OPTARG" ;; n) run_namcap=true; makepkg_args="$makepkg_args -i" ;; T) temp_chroot=true; copy+="-$$" ;; + h|*) usage ;; esac done |