pihole: Fix condition check

This commit is contained in:
Jeremy Gardais 2021-06-28 14:10:28 +02:00
parent 118733b71d
commit 8a0e18985a
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ pihole_new_version_file="/tmp/.pihole.upgrade"
# }}} # }}}
# Check the current status with pihole subcommand {{{ # 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." [ "${DEBUG}" -eq "0" ] && printf '\e[1;35m%-6s\e[m\n' "DEBUG: Pi-hole seems up to date."
## Ensure to remove any temp file ## Ensure to remove any temp file
rm --force -- "${pihole_new_version_file}" rm --force -- "${pihole_new_version_file}"