mirror of
https://github.com/pi-hole/pi-hole
synced 2024-12-22 23:08:07 +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 the above file exists, then we can read from that. Prevents overuse of Github API
|
||||||
if [[ -f "$cachedVersions" ]]; then
|
if [[ -f "$cachedVersions" ]]; then
|
||||||
IFS=' ' read -r -a arrCache <<< $(cat $cachedVersions)
|
IFS=' ' read -r -a arrCache < "$cachedVersions"
|
||||||
case $daemon in
|
case $daemon in
|
||||||
"pi-hole" ) echo ${arrCache[0]};;
|
"pi-hole" ) echo "${arrCache[0]}";;
|
||||||
"AdminLTE" ) echo ${arrCache[1]};;
|
"AdminLTE" ) echo "${arrCache[1]}";;
|
||||||
"FTL" ) echo ${arrCache[2]};;
|
"FTL" ) echo "${arrCache[2]}";;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user