From 3c0de3529a592eee777d978ba07a9d19041fa83d Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Tue, 18 Feb 2020 21:39:10 +0100 Subject: [PATCH] No update if no update --- music-sync.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music-sync.sh b/music-sync.sh index a8c5e9a..71a8f05 100755 --- a/music-sync.sh +++ b/music-sync.sh @@ -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}"