mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +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
35cf863f4b
commit
c9829dd3e4
1 changed files with 5 additions and 0 deletions
|
@ -2386,6 +2386,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 a new issue