From: Bastian Dehn Date: Fri, 15 Jul 2016 19:06:27 +0000 (+0200) Subject: .flactomp3v2.conf transfer in cluster X-Git-Tag: v1.0.0^2~129 X-Git-Url: https://gitweb.hhaalo.de/?a=commitdiff_plain;h=bcf3b986cf7712a4bf8323df2bdc9b0c2e018c62;p=albentohandy.git .flactomp3v2.conf transfer in cluster .flactomp3v2.conf exists and cluster convert it will be transfer like a basefile and cleanup wenn it is done --- diff --git a/albentohandy.sh b/albentohandy.sh index afd2b06..38af988 100755 --- a/albentohandy.sh +++ b/albentohandy.sh @@ -32,6 +32,11 @@ mkzip=false removework=false cptodest=false +if [ -f $HOME/.flactomp3v2.conf ] +then + BASEFILE="--bf $HOME/.flactomp3v2.conf --cleanup" +fi + # read parameters while getopts ":ci:m:S::rz:" optname do @@ -85,7 +90,7 @@ done # convert flac to mp3 # it is the longest phase printf "\nPhase %02d of %02d: flac -> mp3\n" $((curphase++)) $phase -find $work -name '*.flac' | sort | parallel --eta --progress --noswap -S $parallelopts $scriptpath/flactomp3v2.sh {} +find $work -name '*.flac' | sort | parallel $BASEFILE --eta --progress --noswap -S $parallelopts $scriptpath/flactomp3v2.sh {} # removing flac and cover.jpg printf "\nPhase %02d of %02d: remove flac's and cover's\n\n" $((curphase++)) $phase