From a624d3be8d99692e4ed6a64dd9c375a8c57bbfe3 Mon Sep 17 00:00:00 2001 From: Adam Warner Date: Fri, 4 Apr 2025 23:39:56 +0100 Subject: [PATCH] In ./advanced/Scripts/utils.sh line 91: if [[ $? -eq 5 ]]; then ^------------^ SC3010 (warning): In POSIX sh, [[ ]] is undefined. Signed-off-by: Adam Warner --- advanced/Scripts/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/advanced/Scripts/utils.sh b/advanced/Scripts/utils.sh index 63d51f87..adce8144 100755 --- a/advanced/Scripts/utils.sh +++ b/advanced/Scripts/utils.sh @@ -88,8 +88,8 @@ getFTLConfigValue(){ ####################### setFTLConfigValue(){ pihole-FTL --config "${1}" "${2}" >/dev/null - if [[ $? -eq 5 ]]; then - echo -e " ${CROSS} ${1} set by environment variable. Please unset it to use this function" + if [ $? -eq 5 ]; then + printf " %s %s set by environment variable. Please unset it to use this function\n" "${CROSS}" "${1}" exit 5 fi }