From: Bastian Dehn Date: Mon, 11 Jul 2016 13:45:09 +0000 (+0200) Subject: not exists destfolder it will create X-Git-Tag: v1.0.0^2~144 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=23945a3839ce0bd24299e50f29d4d4b88d356da4;p=albentohandy.git not exists destfolder it will create --- diff --git a/albentohandy.sh b/albentohandy.sh index d3ad04f..9d2ed4e 100755 --- a/albentohandy.sh +++ b/albentohandy.sh @@ -87,6 +87,10 @@ fi if [ $cptodest == true ] then printf "Phase %02d of %02d: copy %s/ to destination %s\n\n" $((curphase++)) $phase $work $dest + if [ ! -d $dest ] + then + mkdir -p $dest + fi cp -r $work/* $dest fi if ( [ $mkzip == true ] || [ $cptodest == true ] ) && [ $removework == true ]