mirror of
https://github.com/pi-hole/pi-hole
synced 2025-07-08 16:18:06 +00:00
In ./advanced/Scripts/utils.sh line 91:
if [[ $? -eq 5 ]]; then ^------------^ SC3010 (warning): In POSIX sh, [[ ]] is undefined. Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
39f5115135
commit
a624d3be8d
@ -88,8 +88,8 @@ getFTLConfigValue(){
|
|||||||
#######################
|
#######################
|
||||||
setFTLConfigValue(){
|
setFTLConfigValue(){
|
||||||
pihole-FTL --config "${1}" "${2}" >/dev/null
|
pihole-FTL --config "${1}" "${2}" >/dev/null
|
||||||
if [[ $? -eq 5 ]]; then
|
if [ $? -eq 5 ]; then
|
||||||
echo -e " ${CROSS} ${1} set by environment variable. Please unset it to use this function"
|
printf " %s %s set by environment variable. Please unset it to use this function\n" "${CROSS}" "${1}"
|
||||||
exit 5
|
exit 5
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user