From fb4dcab29aa4973dc087d5953f4be9ad62bcd98a Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Tue, 12 Jul 2022 12:50:42 -0600 Subject: [PATCH] chore(shellcheck): ignore some warnings --- backup/backup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backup/backup.sh b/backup/backup.sh index c5cfebe..cd07ae9 100755 --- a/backup/backup.sh +++ b/backup/backup.sh @@ -70,6 +70,7 @@ badParam() { cleanup() { # cleanup 503 if copied if [ "$err503Copied" -eq 1 ]; then + # shellcheck disable=SC2129 if ! rm -f "$webroot/$err503File" 2>>"$logFile"; then printf "%s[%s] -- [WARNING] Could not remove 503 error page." \ "$warn" "$(stamp)" >>"$logFile" @@ -785,6 +786,7 @@ fi if [ -n "${borgPruneSettings}" ]; then printf "%s[%s] -- [INFO] Executing borg prune operation --%s\n" \ "$cyan" "$(stamp)" "$norm" >>"$logFile" + # shellcheck disable=SC2086 "${borgPath}" prune --show-rc -v ${borgPruneParams} ${borgPruneSettings} \ 2>>"$logFile" borgPruneResult="$?"