]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
warrenty zipfile ends with .zip
authorBastian Dehn <hhaalo@arcor.de>
Wed, 13 Jul 2016 12:20:49 +0000 (14:20 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Wed, 13 Jul 2016 12:20:49 +0000 (14:20 +0200)
albentohandy.sh

index 1d7abfaa7edbf2f032a42919e82fca67fbb5db41..afd2b06212d503ebb78767b19ff761308524947b 100755 (executable)
@@ -103,6 +103,10 @@ fi
 if [ $mkzip == true ]
 then
        printf "Phase %02d of %02d: create %s\n" $((curphase++)) $phase $zipname
+       if [[ ! $zipname =~ .zip ]]
+       then
+               zipname="${zipname}.zip"
+       fi
        curpath=$(pwd)
        cd $work
        7z a -bd -mmt=off -mm=Copy $curpath/$zipname .