From 7e936af0737b591db4b3c237adfc0e5a3b186de0 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Tue, 13 Feb 2007 11:07:33 +0100 Subject: [PATCH] makechroot: check argument presence --- makechroot | 5 +++++ 1 file changed, 5 insertions(+) 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" -- 2.39.5