mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-02-02 17:48:52 +00:00
switch out -eq for ==
This commit is contained in:
parent
b5fc88227b
commit
2f976504e8
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ main() {
|
||||||
web_version_current="$(/usr/local/bin/pihole version --admin --current)"
|
web_version_current="$(/usr/local/bin/pihole version --admin --current)"
|
||||||
web_version_latest="$(/usr/local/bin/pihole version --admin --latest)"
|
web_version_latest="$(/usr/local/bin/pihole version --admin --latest)"
|
||||||
|
|
||||||
if [[ "${pihole_version_latest}" -eq "-1" || "${web_version_latest}" -eq "-1" ]]; then
|
if [[ "${pihole_version_latest}" == "-1" || "${web_version_latest}" == "-1" ]]; then
|
||||||
echo "*** Unable to contact GitHub for latest version. Please try again later, contact support if this continues."
|
echo "*** Unable to contact GitHub for latest version. Please try again later, contact support if this continues."
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue