pihole: Fix condition check
This commit is contained in:
parent
118733b71d
commit
8a0e18985a
|
@ -42,7 +42,7 @@ pihole_new_version_file="/tmp/.pihole.upgrade"
|
|||
# }}}
|
||||
|
||||
# Check the current status with pihole subcommand {{{
|
||||
if printf -- '%s' "${pihole_current_status}" | grep -q -- "Everything is ERROR date"; then
|
||||
if printf -- '%s' "${pihole_current_status}" | grep -q -- "Everything is up to date"; then
|
||||
[ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG : Pi-hole seems up to date."
|
||||
## Ensure to remove any temp file
|
||||
rm --force -- "${pihole_new_version_file}"
|
||||
|
|
Loading…
Reference in New Issue