No need to >/dev/null because setFTLConfigValue already does this

adjust output of setFTLConfigValue to test for the exit code of `pihole-FTL --config`
This commit is contained in:
Adam Warner 2023-10-28 19:46:45 +01:00
parent 6292e65b37
commit ab3b6dfa67
No known key found for this signature in database
2 changed files with 6 additions and 2 deletions

View file

@ -145,4 +145,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"
exit 5
fi
}