Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/pi-hole/pi-hole.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Warner <me@adamwarner.co.uk>2020-04-18 14:53:19 +0300
committerAdam Warner <me@adamwarner.co.uk>2020-04-18 14:57:06 +0300
commit3cc9ba4ee8f22d4af6837016174d798b6f1bab13 (patch)
tree2336ed84824a57a8d39e0d71599224cbf9544e2a /advanced/Scripts/version.sh
parent6dc85c3527ee532888cf52d028f5da1fbc8a920e (diff)
stickler Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Diffstat (limited to 'advanced/Scripts/version.sh')
-rwxr-xr-xadvanced/Scripts/version.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/advanced/Scripts/version.sh b/advanced/Scripts/version.sh
index da017187..2c4abd0b 100755
--- a/advanced/Scripts/version.sh
+++ b/advanced/Scripts/version.sh
@@ -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