diff --git a/masync b/masync index 57ccd21..b3a0369 100755 --- a/masync +++ b/masync @@ -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