.flactomp3v2.conf exists and cluster convert
it will be transfer like a basefile
and cleanup wenn it is done
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
# 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