From 69fbbd87f895580ebb5fb2b58362ba6243bd1043 Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 28 Apr 2021 12:13:40 -0400 Subject: Clarify and keep non-new file run data When we find files but nothing to sync keep the file around. --- ssync | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ssync b/ssync index b50ded2..4067001 100755 --- a/ssync +++ b/ssync @@ -73,8 +73,7 @@ if [ $GET_COUNT -gt 0 ]; then -av \ $REMOTE:"${REMOTE_DIR}/'{}'" ${SRC_DIR} else - log "No files to sync - deleting $CURGET_FILE" - rm -f $CURGET_FILE + log "No new files to sync - found $GET_COUNT existing files" fi else log "No new files found - deleting $CURGET_FILE" -- cgit v1.2.3-54-g00ecf