From: Martin Pitt Date: Tue, 13 Feb 2007 10:07:33 +0000 (+0100) Subject: makechroot: check argument presence X-Git-Url: https://piware.de/gitweb/?a=commitdiff_plain;h=7e936af0737b591db4b3c237adfc0e5a3b186de0;p=bin.git makechroot: check argument presence --- diff --git a/makechroot b/makechroot index 1028c21..c9ad108 100755 --- a/makechroot +++ b/makechroot @@ -3,6 +3,11 @@ DIST="$1" DIR="$2" MIRROR="$3" +[ "$DIST" ] && [ "$DIR" ] && [ "$MIRROR" ] || { + echo "Usage: $0 " >&2 + exit 1 +} + mkdir -p "$DIR" debootstrap "$DIST" "$DIR" "$MIRROR"