done
}
-ExistsAlbumlist()
+ConvertProcess()
{
- local albumlist="$1"
-
if [ ! -f "$albumlist" ]; then
- printf "\nalbumlist does not exists\n\n"
- exit
- fi
-}
-
-CreateWorkDirectory()
-{
- local readonly WORK="$1"
-
- if [ ! -d $WORK ]; then
- mkdir $WORK
+ echo "ERROR: albumlist doas not exists"
+ exit 1
fi
-}
-ConvertProcess()
-{
+ mkdir -p $WORK
printf "\nPhase %02d of %02d:\n" $((curphase++)) $phase
printf "create symlinks of flac's in %s\n" "$WORK"
MakeSymlinksToWork "$WORK" "$MUSICPATH" "$albumlist"
ReadArguments $*
- ExistsAlbumlist "$albumlist"
- CreateWorkDirectory "$WORK"
-
ConvertProcess
AdvancedFeatures
}