clean up spacing errors for success msg in log
This commit is contained in:
parent
e273f3274c
commit
171cdbe676
18
.vscode/numbered-bookmarks.json
vendored
18
.vscode/numbered-bookmarks.json
vendored
@ -1,19 +1,3 @@
|
|||||||
{
|
{
|
||||||
"bookmarks": [
|
"bookmarks": []
|
||||||
{
|
|
||||||
"fsPath": "$ROOTPATH$/pilerbackup.sh",
|
|
||||||
"bookmarks": [
|
|
||||||
-1,
|
|
||||||
301,
|
|
||||||
46,
|
|
||||||
386,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
-1,
|
|
||||||
637
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
@ -552,9 +552,8 @@ borgResult="$?"
|
|||||||
|
|
||||||
## check borg exit status
|
## check borg exit status
|
||||||
if [ "$borgResult" -eq 0 ]; then
|
if [ "$borgResult" -eq 0 ]; then
|
||||||
printf "${ok}[%s] -- [SUCCESS] Borg backup completed " \
|
printf "${ok}[%s] -- [SUCCESS] Borg backup completed --${norm}\n" \
|
||||||
"$(stamp)" >> "$logFile"
|
"$(stamp)" >> "$logFile"
|
||||||
printf "successfully --${norm}\n" >> "$logFile"
|
|
||||||
elif [ "$borgResult" -eq 1 ]; then
|
elif [ "$borgResult" -eq 1 ]; then
|
||||||
printf "${warn}[%s] -- [WARNING] Borg completed with warnings. " \
|
printf "${warn}[%s] -- [WARNING] Borg completed with warnings. " \
|
||||||
"$(stamp)" >> "$logFile"
|
"$(stamp)" >> "$logFile"
|
||||||
@ -621,8 +620,7 @@ printf "${ok}[%s] -- [SUCCESS] Backup operations completed --${norm}\n" \
|
|||||||
cleanup
|
cleanup
|
||||||
|
|
||||||
# note complete success, tally warnings and exit
|
# note complete success, tally warnings and exit
|
||||||
printf "${ok}[%s] -- [SUCCESS] All processes completed successfully --" \
|
printf "${ok}[%s] -- [SUCCESS] All processes completed --${norm}\n" \
|
||||||
"${norm}\n" \
|
|
||||||
"$(stamp)" >> "$logFile"
|
"$(stamp)" >> "$logFile"
|
||||||
printf "${magenta}[%s] --- %s execution completed ---${norm}\n" \
|
printf "${magenta}[%s] --- %s execution completed ---${norm}\n" \
|
||||||
"$(stamp)" "$scriptName" >> "$logFile"
|
"$(stamp)" "$scriptName" >> "$logFile"
|
||||||
|
Loading…
Reference in New Issue
Block a user