No update if no update

This commit is contained in:
Jeroen De Meerleer 2020-02-18 21:39:10 +01:00
parent f4c71cd38e
commit 3c0de3529a
1 changed files with 1 additions and 1 deletions

View File

@ -329,7 +329,7 @@ CreateFileList() {
echo ${3}$origfile >> /tmp/music-sync-filelist
VerboseOutput 0 "${origfile} is newer in source"
VerboseOutput 2 "Added: ${3}${origfile}"
elif [[ $playlists == true ]] && [[ "${1}/$origfile" == *".m3u" ]]; then
elif [[ $playlists == true ]] && [[ "${1}/$origfile" == *".m3u" ]] && [[ "${1}/$origfile" -nt "${2}/$mp3file" ]]; then
echo ${3}$origfile >> /tmp/music-sync-filelist
VerboseOutput 0 "${origfile} is newer in source"
VerboseOutput 2 "Added playlist: ${3}${origfile}"