mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-07 19:55:09 +02: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(){
|
||||
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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user