mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-18 06:08:21 +00:00
Fix pihole -up showing FTL update when network is down
Fixes #1877 Signed-off-by: Mcat12 <newtoncat12@yahoo.com>
This commit is contained in:
parent
06134d3ffc
commit
91a2d052a7
@ -2402,6 +2402,11 @@ FTLcheckUpdate() {
|
||||
local FTLlatesttag
|
||||
FTLlatesttag=$(curl -sI https://github.com/pi-hole/FTL/releases/latest | grep 'Location' | awk -F '/' '{print $NF}' | tr -d '\r\n')
|
||||
|
||||
if [[ $? != 0 ]]; then
|
||||
# There was an issue while retrieving the latest version
|
||||
return 3
|
||||
fi
|
||||
|
||||
if [[ "${FTLversion}" != "${FTLlatesttag}" ]]; then
|
||||
return 0
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user