summaryrefslogtreecommitdiffstats
path: root/debootstrap
diff options
context:
space:
mode:
authorFrans Pop <fjp@debian.org>2008-01-19 09:12:44 (GMT)
committerFrans Pop <fjp@debian.org>2008-01-19 09:12:44 (GMT)
commit4434a5e47ad1b53cec50068d60b19454ef8b96dc (patch)
tree0482f16747fe2912532ced6589fc1e190f44e895 /debootstrap
parent065b67e0d139f92f6c3662b67ac9707f72e3a77c (diff)
downloaddebootstrap-4434a5e47ad1b53cec50068d60b19454ef8b96dc.zip
debootstrap-4434a5e47ad1b53cec50068d60b19454ef8b96dc.tar.gz
debootstrap-4434a5e47ad1b53cec50068d60b19454ef8b96dc.tar.bz2
Error out on unrecognized options
Currently debootstrap just breaks out of the loop on an unrecognized option which means that that option and anything following it will be taken as arguments leading to weird failures later. Better to error out instead. r50953
Diffstat (limited to 'debootstrap')
-rwxr-xr-xdebootstrap3
1 files changed, 3 insertions, 0 deletions
diff --git a/debootstrap b/debootstrap
index 7ea65e5..0e1b10e 100755
--- a/debootstrap
+++ b/debootstrap
@@ -280,6 +280,9 @@ if [ $# != 0 ] ; then
error 1 NEEDARG "option requires an argument %s" "$1"
fi
;;
+ --*)
+ error 1 BADARG "unrecognized or invalid option %s" "$1"
+ ;;
*)
break
;;