From 171cdbe676b7dbc8be86e13eb6773f86b5144347 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Thu, 25 Jul 2019 13:10:59 -0600 Subject: [PATCH] clean up spacing errors for success msg in log --- .vscode/numbered-bookmarks.json | 18 +----------------- pilerbackup.sh | 6 ++---- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/.vscode/numbered-bookmarks.json b/.vscode/numbered-bookmarks.json index 59ab5b3..4c08963 100644 --- a/.vscode/numbered-bookmarks.json +++ b/.vscode/numbered-bookmarks.json @@ -1,19 +1,3 @@ { - "bookmarks": [ - { - "fsPath": "$ROOTPATH$/pilerbackup.sh", - "bookmarks": [ - -1, - 301, - 46, - 386, - -1, - -1, - -1, - -1, - -1, - 637 - ] - } - ] + "bookmarks": [] } \ No newline at end of file diff --git a/pilerbackup.sh b/pilerbackup.sh index d3d4e67..bb89a20 100644 --- a/pilerbackup.sh +++ b/pilerbackup.sh @@ -552,9 +552,8 @@ borgResult="$?" ## check borg exit status if [ "$borgResult" -eq 0 ]; then - printf "${ok}[%s] -- [SUCCESS] Borg backup completed " \ + printf "${ok}[%s] -- [SUCCESS] Borg backup completed --${norm}\n" \ "$(stamp)" >> "$logFile" - printf "successfully --${norm}\n" >> "$logFile" elif [ "$borgResult" -eq 1 ]; then printf "${warn}[%s] -- [WARNING] Borg completed with warnings. " \ "$(stamp)" >> "$logFile" @@ -621,8 +620,7 @@ printf "${ok}[%s] -- [SUCCESS] Backup operations completed --${norm}\n" \ cleanup # note complete success, tally warnings and exit -printf "${ok}[%s] -- [SUCCESS] All processes completed successfully --" \ - "${norm}\n" \ +printf "${ok}[%s] -- [SUCCESS] All processes completed --${norm}\n" \ "$(stamp)" >> "$logFile" printf "${magenta}[%s] --- %s execution completed ---${norm}\n" \ "$(stamp)" "$scriptName" >> "$logFile"