mirror of
https://github.com/pi-hole/pi-hole
synced 2024-11-13 19:28:59 +00:00
stickler Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
6dc85c3527
commit
3cc9ba4ee8
@ -90,11 +90,11 @@ getRemoteVersion(){
|
||||
|
||||
#If the above file exists, then we can read from that. Prevents overuse of Github API
|
||||
if [[ -f "$cachedVersions" ]]; then
|
||||
IFS=' ' read -r -a arrCache <<< $(cat $cachedVersions)
|
||||
IFS=' ' read -r -a arrCache < "$cachedVersions"
|
||||
case $daemon in
|
||||
"pi-hole" ) echo ${arrCache[0]};;
|
||||
"AdminLTE" ) echo ${arrCache[1]};;
|
||||
"FTL" ) echo ${arrCache[2]};;
|
||||
"pi-hole" ) echo "${arrCache[0]}";;
|
||||
"AdminLTE" ) echo "${arrCache[1]}";;
|
||||
"FTL" ) echo "${arrCache[2]}";;
|
||||
esac
|
||||
|
||||
return 0
|
||||
|
Loading…
Reference in New Issue
Block a user