From f6a6157e4e54babd76c632d38378703c5dd70d32 Mon Sep 17 00:00:00 2001 From: Amber Date: Tue, 22 Jun 2021 10:49:48 +0200 Subject: [PATCH] syncexists wrong test --- masync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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