stickler Signed-off-by: Adam Warner <me@adamwarner.co.uk>

This commit is contained in:
Adam Warner 2020-04-18 12:53:19 +01:00
parent 6dc85c3527
commit 3cc9ba4ee8
No known key found for this signature in database
GPG key ID: 872950F3ECF2B173

View file

@ -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