diff options
author | Jonas Smedegaard <dr@jones.dk> | 2015-05-16 15:13:54 +0200 |
---|---|---|
committer | Jonas Smedegaard <dr@jones.dk> | 2015-05-16 15:13:54 +0200 |
commit | 67dd64c33e4de8094314f6713d19924b9763a578 (patch) | |
tree | eb2647e477207f31a8e9a053f38ad1d4a9c8a83d /localpbuilder-create | |
parent | 35d05933dfe995cf5e5b0c1f605f3b4be64ba0f4 (diff) |
Fix (re)create buildplace as needed.
Diffstat (limited to 'localpbuilder-create')
-rwxr-xr-x | localpbuilder-create | 3 |
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 \ |