From cce2bdffe95a4c2d45574d8f2924d988735facc1 Mon Sep 17 00:00:00 2001 From: Bastian Dehn Date: Mon, 11 Jul 2016 16:43:14 +0200 Subject: [PATCH] albentohandy.sh have to $HOME/.albentohandy.conf --- albentohandy.sh | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/albentohandy.sh b/albentohandy.sh index 9d2ed4e..ccdc9c2 100755 --- a/albentohandy.sh +++ b/albentohandy.sh @@ -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 -- 2.47.3