From 23945a3839ce0bd24299e50f29d4d4b88d356da4 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 11 Jul 2016 15:45:09 +0200 Subject: [PATCH] not exists destfolder it will create --- albentohandy.sh | 4 ++++ 1 file changed, 4 insertions(+) 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 ] -- 2.47.3