Solved some bugs
This commit is contained in:
parent
8a52e8dea4
commit
5924c0fece
@ -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
|
Loading…
Reference in New Issue
Block a user