summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-10-19 16:43:13 -0400
committerDave Reisner <dreisner@archlinux.org>2014-10-19 19:36:31 -0400
commit28140068ce22cc15fc155570f33e0bdaae22de9c (patch)
treef0e76d37e14c145dde55c7670f9c752268f57357
parentbf7dc83bab4f002a29866fd30b1574b6fbca36aa (diff)
downloaddevtools32-28140068ce22cc15fc155570f33e0bdaae22de9c.tar.xz
makechroot: die if we encounter an unexpected option
-rw-r--r--makechrootpkg.in2
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