summaryrefslogtreecommitdiffstats
path: root/debootstrap
diff options
context:
space:
mode:
Diffstat (limited to 'debootstrap')
-rwxr-xr-xdebootstrap13
1 files changed, 8 insertions, 5 deletions
diff --git a/debootstrap b/debootstrap
index bb85db4..c302195 100755
--- a/debootstrap
+++ b/debootstrap
@@ -203,16 +203,19 @@ if [ $# != 0 ] ; then
error 1 NEEDARG "option requires an argument %s" "$1"
fi
;;
- --unpack-tarball)
- if [ -n "$2" ] ; then
- if [ ! -f "$2" ] ; then
- error 1 NOTARBALL "%s: No such file or directory" "$2"
- fi
+ --unpack-tarball|--unpack-tarball=?*)
+ if [ "$1" = "--unpack-tarball" -a -n "$2" ] ; then
UNPACK_TARBALL="$2"
shift 2
+ elif [ "$1" != "${1#--unpack-tarball=}" ]; then
+ UNPACK_TARBALL="${1#--unpack-tarball=}"
+ shift
else
error 1 NEEDARG "option requires an argument %s" "$1"
fi
+ if [ ! -f "$UNPACK_TARBALL" ] ; then
+ error 1 NOTARBALL "%s: No such file or directory" "$UNPACK_TARBALL"
+ fi
;;
--include|--include=?*)
if [ "$1" = "--include" -a -n "$2" ]; then