]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
not exists destfolder it will create
authorBastian Dehn <hhaalo@arcor.de>
Mon, 11 Jul 2016 13:45:09 +0000 (15:45 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 11 Jul 2016 13:45:09 +0000 (15:45 +0200)
albentohandy.sh

index d3ad04f0d18671e7becb9e90b826719435b5fd34..9d2ed4e22f8f35363cc797c4a3465cd95e116837 100755 (executable)
@@ -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 ]