diff options
author | Bill <bill@billserver.senders.io> | 2021-04-28 12:13:40 -0400 |
---|---|---|
committer | Bill <bill@billserver.senders.io> | 2021-04-28 12:13:40 -0400 |
commit | 69fbbd87f895580ebb5fb2b58362ba6243bd1043 (patch) | |
tree | ef97bc2288a3695e0830c3121016e9752c0d68dc | |
parent | b72e7b2afe9452503b60a28329067fea17a54967 (diff) |
When we find files but nothing to sync keep the file around.
-rwxr-xr-x | ssync | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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" |