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>2019-12-04 23:09:34 +0300
committerAdam Warner <me@adamwarner.co.uk>2019-12-04 23:10:46 +0300
commiteaf1244932ecb3e3eece033649453241df513b69 (patch)
treef7be7a90d7b79208066ecb28df29a494e611f44d /advanced
parent7c2bbf840aeb18437a1f273ecd9b307ce5f828c8 (diff)
:dominik: Detect binary name before calling FTLcheckUpdate in update.sh
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
Diffstat (limited to 'advanced')
-rwxr-xr-xadvanced/Scripts/update.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/advanced/Scripts/update.sh b/advanced/Scripts/update.sh
index 443dfb1f..e45be5cf 100755
--- a/advanced/Scripts/update.sh
+++ b/advanced/Scripts/update.sh
@@ -128,7 +128,12 @@ main() {
fi
fi
- if FTLcheckUpdate > /dev/null; then
+ local funcOutput
+ funcOutput=$(get_binary_name) #Store output of get_binary_name here
+ local binary
+ binary="pihole-FTL${funcOutput##*pihole-FTL}" #binary name will be the last line of the output of get_binary_name (it always begins with pihole-FTL)
+
+ if FTLcheckUpdate "${binary}" > /dev/null; then
FTL_update=true
echo -e " ${INFO} FTL:\\t\\t${COL_YELLOW}update available${COL_NC}"
else