From: Bastian Dehn Date: Wed, 13 Jul 2016 12:20:49 +0000 (+0200) Subject: warrenty zipfile ends with .zip X-Git-Tag: v1.0.0^2~130 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=250a27d50b5e88b77e5f4110545b29cacf1f139f;p=albentohandy.git warrenty zipfile ends with .zip --- diff --git a/albentohandy.sh b/albentohandy.sh index 1d7abfa..afd2b06 100755 --- a/albentohandy.sh +++ b/albentohandy.sh @@ -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 .