From b05192a613f01c509c3e5fe2fed7673011f2dab5 Mon Sep 17 00:00:00 2001 From: Asif Bacchus Date: Sun, 9 May 2021 09:49:47 -0600 Subject: [PATCH] fix: wrong pipeline variable ref in writelog --- cfddns.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cfddns.sh b/cfddns.sh index ed86852..cfdc4ef 100644 --- a/cfddns.sh +++ b/cfddns.sh @@ -219,16 +219,16 @@ writeLog() { printf "%s[%s] ERROR: %s (code: %s)%s\n" "$err" "$(stamp)" "$2" "$3" "$norm" >>"$logFile" ;; process) - printf "%s[%s] %s... %s" "$cyan" "$(stamp)" "$1" "$norm" >>"$logFile" + printf "%s[%s] %s... %s" "$cyan" "$(stamp)" "$2" "$norm" >>"$logFile" ;; process-done) - printf "%s%s%s\n" "$cyan" "$1" "$norm" >>"$logFile" + printf "%s%s%s\n" "$cyan" "$2" "$norm" >>"$logFile" ;; process-error) printf "%sERROR%s\n" "$err" "$norm" >>"$logFile" ;; process-warning) - printf "%s%s%s\n" "$warn" "$1" "$norm" >>"$logFile" + printf "%s%s%s\n" "$warn" "$2" "$norm" >>"$logFile" ;; stamped) printf "[%s] %s\n" "$(stamp)" "$2" >>"$logFile"