summaryrefslogtreecommitdiff
path: root/localpbuilder-create
diff options
context:
space:
mode:
Diffstat (limited to 'localpbuilder-create')
-rwxr-xr-xlocalpbuilder-create3
1 files changed, 2 insertions, 1 deletions
diff --git a/localpbuilder-create b/localpbuilder-create
index 55a24cd..247e522 100755
--- a/localpbuilder-create
+++ b/localpbuilder-create
@@ -102,7 +102,7 @@ aptcache=""
buildresult="$HOME/src/pbuild-$pool/"
makepaths=''
-for path in "$buildresult"; do
+for path in "$buildplace" "$buildresult"; do
if [ ! -d "$path" ]; then
echo "W: Needed path \"$path\" does not exist"
makepaths='yes'
@@ -113,6 +113,7 @@ if [ "$makepaths" = 'yes' ]; then
|| ask 'Create the missing path(s)' \
|| exit1 "Cannot continue without those missing paths"
mkdir -p "$buildresult"
+ sudo mkdir -p "$buildplace"
fi
sudo pbuilder create \