From 11dd4ce31636c1162d202ab3e21eca1cba3c5d11 Mon Sep 17 00:00:00 2001 From: Dave Lane Date: Mon, 14 Oct 2019 04:31:29 +0000 Subject: [PATCH] add some extra spaces at the end --- run-restic.sh | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/run-restic.sh b/run-restic.sh index d75bd5b..cba39d3 100755 --- a/run-restic.sh +++ b/run-restic.sh @@ -16,19 +16,23 @@ LOG=/var/log/restic.log # # functions timestamp() { - # a timestamp for logging purposes - TIMESTAMP=`date '+%Y-%m-%d %H:%M.%S'` + # a timestamp for logging purposes + TIMESTAMP=`date '+%Y-%m-%d %H:%M.%S'` } # # function to direct a message... log() { - # - # a timestamp for logging purposes - timestamp - if test -w $LOG ; then - echo "$SCRNAME: $TIMESTAMP $@" >> $LOG - fi + # + # a timestamp for logging purposes + timestamp + if test -w $LOG ; then + echo "$SCRNAME: $TIMESTAMP $@" >> $LOG + fi } +space() { + echo "" >> $LOG + echo "" >> $LOG +} # # provide the DST and override defaults if test -f $DIR/$CONF ; then @@ -56,5 +60,4 @@ log "running cleanup" $NICE $CMD $CLEAN >> $LOG # leave extra spaces log "done" -log "" -log "" +space