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" done < "/tmp/music-sync-filelist"
} }
CleanUp() {
rm "/tmp/music-sync-filelist"
rm "/tmp/converted"
}
GetOptions $@ GetOptions $@
if [[ "$help" == true ]]; then if [[ "$help" == true ]]; then
Usage Usage
@ -145,4 +150,5 @@ if [[ "$help" == true ]]; then
fi fi
CreateFileList $source $dest "" CreateFileList $source $dest ""
ConvertFiles ConvertFiles
CopyFiles CopyFiles
CleanUp