Added cleanup

This commit is contained in:
Jeroen De Meerleer 2018-11-30 13:42:00 +01:00
parent 0e0b52cb3e
commit 2dad9781eb

View File

@ -138,6 +138,11 @@ CopyFiles() {
done < "/tmp/music-sync-filelist"
}
CleanUp() {
rm "/tmp/music-sync-filelist"
rm "/tmp/converted"
}
GetOptions $@
if [[ "$help" == true ]]; then
Usage
@ -146,3 +151,4 @@ fi
CreateFileList $source $dest ""
ConvertFiles
CopyFiles
CleanUp