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 }