From 249652d002f737fb61cf630bb21fc107ab508ce6 Mon Sep 17 00:00:00 2001 From: Alexander Barton Date: Thu, 19 Apr 2018 12:17:34 +0200 Subject: [PATCH] ax-common.sh: Correctly quote printf statement This fixes the following shellcheck(1) warning SC1117: Backslash is literal in "\0". Prefer explicit escaping: "\\0". --- lib/ax/ax-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ax/ax-common.sh b/lib/ax/ax-common.sh index c0362ff..f43e475 100644 --- a/lib/ax/ax-common.sh +++ b/lib/ax/ax-common.sh @@ -29,7 +29,7 @@ ax_msg1() { *) c="0"; esac # print colored word(s): - printf "\033[0;%sm%s\033[0m " "${c}" "${1}" + printf "\\033[0;%sm%s\\033[0m " "${c}" "${1}" else # print plain text: printf "%s " "${1}" -- 2.39.2