From fd175fddca97d7618bff2bb75350b5999f1da538 Mon Sep 17 00:00:00 2001 From: Juan David Hurtado G Date: Sun, 15 Dec 2024 09:57:30 -0500 Subject: [PATCH] shellcheck: disable=SC2046 on verify.sh pt2 --- usr/local/share/bastille/verify.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/local/share/bastille/verify.sh b/usr/local/share/bastille/verify.sh index 178e06cc..4ae5c48e 100644 --- a/usr/local/share/bastille/verify.sh +++ b/usr/local/share/bastille/verify.sh @@ -79,7 +79,7 @@ verify_template() { ## line count must match newline count # shellcheck disable=SC2046 - if [ $(wc -l "${_path}" | awk '{print $1}') -ne $(grep -c printf '\n' "${_path}") ]; then + if [ $(wc -l "${_path}" | awk '{print $1}') -ne $(grep -c $'\n' "${_path}") ]; then info "[${_hook}]:" error_notify "${BASTILLE_TEMPLATE}:${_hook} [failed]." error_notify "Line numbers don't match line breaks."