From 92cb5dce6294969c213c81d75d062a2d9b622a8a Mon Sep 17 00:00:00 2001 From: Bill Date: Wed, 28 Apr 2021 11:31:20 -0400 Subject: Delete empty run files - logs will let us know We don't need the run file to know there was nothing to fetch --- ssync | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssync b/ssync index d1962dc..622c3cd 100755 --- a/ssync +++ b/ssync @@ -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 -- cgit v1.2.3-54-g00ecf