Solved some bugs

This commit is contained in:
Jeroen De Meerleer 2018-11-30 13:49:53 +01:00
parent 8a52e8dea4
commit 5924c0fece
1 changed files with 5 additions and 1 deletions

View File

@ -108,7 +108,7 @@ CreateFileList() {
newdir=${newdir#"/"}
VerboseOutput "Info" "Entering $newdir"
CreateFileList "${1}/$relfile" "${2}/$relfile" "$newdir"
elif [[ ! -f "${2}/$relfile" || "${2}/$relfile" -nt "${1}/$relfile" ]]; then
elif [[ ! -f "${2}/$relfile" || "${1}/$relfile" -nt "${2}/$relfile" ]]; then
echo ${3}/$relfile >> /tmp/music-sync-filelist
VerboseOutput "Info" "Added: ${3}/${relfile}"
fi
@ -153,6 +153,10 @@ if [[ "$help" == true ]]; then
exit
fi
CreateFileList $source $dest ""
if [[ ! -f /tmp/music-sync-filelist ]]; then
VerboseOutput "Info" "Nothing to do!"
exit 0
fi
ConvertFiles
CopyFiles
CleanUp