mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
Have to get latest tag via GitHub API for downloading the binaries
This commit is contained in:
parent
6018c0c2fc
commit
fbe3dc0dcd
1 changed files with 7 additions and 1 deletions
|
@ -1182,7 +1182,13 @@ FTLdownload() {
|
|||
binary="pihole-FTL-linux-x86_32"
|
||||
fi
|
||||
|
||||
curl -sSL "https://github.com/pi-hole/FTL/releases/latest/${binary}" -o "/opt/pihole/pihole-FTL"
|
||||
latesttag=$(curl -s https://api.github.com/repos/pi-hole/FTL/releases/latest | grep "tag_name" | sed "s/.*: \"//;s/\",//;")
|
||||
if [ ! "${latesttag}" ]; then
|
||||
echo "Error in getting latest release tag from GitHub"
|
||||
return 0
|
||||
fi
|
||||
curl -sSL "https://github.com/pi-hole/FTL/releases/download/${latesttag}/${binary}" -o "/opt/pihole/pihole-FTL"
|
||||
return 0
|
||||
}
|
||||
|
||||
FTLinstall() {
|
||||
|
|
Loading…
Reference in a new issue