From 67dd64c33e4de8094314f6713d19924b9763a578 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sat, 16 May 2015 15:13:54 +0200 Subject: Fix (re)create buildplace as needed. --- localpbuilder-create | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'localpbuilder-create') 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 \ -- cgit v1.2.3