summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-08-13 19:31:27 +0200
committerGuido Günther <agx@sigxcpu.org>2010-08-13 19:31:27 +0200
commit1d06128605456304cdeb78452a56692a5b5d8cd0 (patch)
treedf01dc40ee43c1b2ebc8319003ea19d8ab58dd26
parentbbd8396bfbd3a7ab833131a77b52c5b662940b80 (diff)
When creating a new base image don't fail if it's missing
-rwxr-xr-xgit-pbuilder2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-pbuilder b/git-pbuilder
index b0f1f623..a6b09c14 100755
--- a/git-pbuilder
+++ b/git-pbuilder
@@ -55,7 +55,7 @@ else
fi
# Make sure the base directory exists.
-if [ ! -d "$BASE" ] ; then
+if [ ! -d "$BASE" ] && [ "$1" != "create" ]; then
echo "Base directory $BASE does not exist" >&2
exit 1
fi