summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBill <bill@billserver.senders.io>2021-04-28 12:13:40 -0400
committerBill <bill@billserver.senders.io>2021-04-28 12:13:40 -0400
commit69fbbd87f895580ebb5fb2b58362ba6243bd1043 (patch)
treeef97bc2288a3695e0830c3121016e9752c0d68dc
parentb72e7b2afe9452503b60a28329067fea17a54967 (diff)
Clarify and keep non-new file run dataHEADmaster
When we find files but nothing to sync keep the file around.
-rwxr-xr-xssync3
1 files changed, 1 insertions, 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"