diff options
author | Bill <bill@billserver.senders.io> | 2021-04-28 11:31:20 -0400 |
---|---|---|
committer | Bill <bill@billserver.senders.io> | 2021-04-28 11:31:20 -0400 |
commit | 92cb5dce6294969c213c81d75d062a2d9b622a8a (patch) | |
tree | c5e087918c80bae87def529cfe492613f015b7d9 | |
parent | c1f9f9297a3645109d6993feb7c62045fc9527ef (diff) |
Delete empty run files - logs will let us know
We don't need the run file to know there was nothing to fetch
-rwxr-xr-x | ssync | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -70,7 +70,8 @@ if [ $COUNT -gt 0 ]; then -av \ $REMOTE:"${REMOTE_DIR}/'{}'" ${SRC_DIR} else - log "No files to sync" + log "No files to sync - deleting $CURGET_FILE" + rm -f $CURGET_FILE fi echo $NEXT_RUN_DATE > $LASTRAN_FILE |