Added more verbosity

This commit is contained in:
Jeroen De Meerleer 2018-11-30 13:43:21 +01:00
parent 2dad9781eb
commit 143a1dfa81

View File

@ -124,6 +124,7 @@ ConvertFiles() {
mkdir -p "/tmp/converted/${line%/*}";
fi;
lame -q 0 -b 192 $source/$line /tmp/converted/$line 1>/dev/null 2>/dev/null
VerboseOutput "Info" "Converted $line"
done < "/tmp/music-sync-filelist"
}
@ -136,11 +137,14 @@ CopyFiles() {
fi;
cp -f $source/$line $dest/$line # 1>/dev/null 2>/dev/null
done < "/tmp/music-sync-filelist"
VerboseOutput "Info" "Copied $line"
}
CleanUp() {
VerboseOutput "Info" "Cleaning Up"
rm "/tmp/music-sync-filelist"
rm "/tmp/converted"
VerboseOutput "Info" "Done"
}
GetOptions $@