]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
add: function SetDefaultVariables
authorBastian Dehn <hhaalo@arcor.de>
Fri, 24 Nov 2017 23:02:58 +0000 (00:02 +0100)
committerBastian Dehn <hhaalo@arcor.de>
Fri, 24 Nov 2017 23:02:58 +0000 (00:02 +0100)
albentohandy

index 4256365bf0fbb160ba5dc3465945fbb848e84238..17efd2e15141663d1d4b0b8baaa667406404c7a4 100755 (executable)
@@ -171,6 +171,17 @@ ExistsBasicProgramms() {
        fi
 }
 
+SetDefaultVariables() {
+       albumlist="albumlist"
+       parallelopts=":"
+       curphase=1
+       phase=3
+       checksum=false
+       mkzip=false
+       removework=false
+       cptodest=false
+}
+
 main() {
        WORK="$(pwd)/work.$$" # temporary working directory
        SCRIPTPATH="/usr/bin" # path to flactomp3v2 and notify.sh script
@@ -181,15 +192,7 @@ main() {
 
        ExistsScripts "$SCRIPTPATH"
 
-       # set defaults
-       albumlist="albumlist"
-       parallelopts=":"
-       curphase=1
-       phase=3
-       checksum=false
-       mkzip=false
-       removework=false
-       cptodest=false
+       SetDefaultVariables
 
        # read parameters
        while getopts "chi:m:S:rw:z:" optname; do