@ -67,8 +67,9 @@ hastrailingslash() {
}
syncexists() {
if [ -f "${SYNCFILE}" ]; then
if [ ! -f "${SYNCFILE}" ]; then
echo false
return
fi
localpath_hash=$(echo "$1" | md5sum | cut -f1 --delimiter=" " -)
if [[ $(cat "${SYNCFILE}" | grep "$localpath_hash" | wc -l) -ge 1 ]]; then