Solved some bugs
This commit is contained in:
parent
8a52e8dea4
commit
5924c0fece
@ -108,7 +108,7 @@ CreateFileList() {
|
|||||||
newdir=${newdir#"/"}
|
newdir=${newdir#"/"}
|
||||||
VerboseOutput "Info" "Entering $newdir"
|
VerboseOutput "Info" "Entering $newdir"
|
||||||
CreateFileList "${1}/$relfile" "${2}/$relfile" "$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
|
echo ${3}/$relfile >> /tmp/music-sync-filelist
|
||||||
VerboseOutput "Info" "Added: ${3}/${relfile}"
|
VerboseOutput "Info" "Added: ${3}/${relfile}"
|
||||||
fi
|
fi
|
||||||
@ -153,6 +153,10 @@ if [[ "$help" == true ]]; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
CreateFileList $source $dest ""
|
CreateFileList $source $dest ""
|
||||||
|
if [[ ! -f /tmp/music-sync-filelist ]]; then
|
||||||
|
VerboseOutput "Info" "Nothing to do!"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
ConvertFiles
|
ConvertFiles
|
||||||
CopyFiles
|
CopyFiles
|
||||||
CleanUp
|
CleanUp
|
Loading…
Reference in New Issue
Block a user