]> gitweb.hhaalo.de Git - albentohandy.git/commitdiff
albentohandy.sh have to $HOME/.albentohandy.conf
authorBastian Dehn <hhaalo@arcor.de>
Mon, 11 Jul 2016 14:43:14 +0000 (16:43 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Mon, 11 Jul 2016 14:43:14 +0000 (16:43 +0200)
albentohandy.sh

index 9d2ed4e22f8f35363cc797c4a3465cd95e116837..ccdc9c21b354f9a46b3a2a12c40e500d49f9a297 100755 (executable)
@@ -3,9 +3,16 @@
 # work is a directory do symlinked original and convert
 work="$(pwd)/work.$$"
 # scriptpath is the path to flactomp3v2.sh script
-scriptpath="/media/smbdaten1/scripts"
+scriptpath="/tmp/scripts"
 # musicpath is collection directory
-musicpath="/media/smbdaten1/musik-flac"
+musicpath="/tmp/musikpath"
+if [ -f $HOME/.albumtohandy.conf ]
+then
+       source $HOME/.albumtohandy.conf
+else
+       printf "\nERROR\n%s/.albumtohandy.conf does not exists\n" $HOME
+       exit 1
+fi
 albumlist="albumlist"
 parallelopts=":"
 curphase=1
@@ -98,3 +105,5 @@ then
        printf "cleanup working directory\n\n"
        rm -r $work
 fi
+
+exit 0