echo -e "${COL_LIGHT_RED}Error: Unable to get latest release location from GitHub${COL_NC}"
return1
fi
# If the download worked,
if curl -sSL --fail "https://github.com/pi-hole/FTL/releases/download/${latesttag%$'\r'}/${binary}" -o "/tmp/${binary}";then
# get sha1 of the binary we just downloaded for verification.
@ -1813,7 +1814,7 @@ FTLinstall() {
# Detect suitable FTL binary platform
FTLdetect(){
echo""
echo -e "${INFO}Downloading latest version of FTL..."
echo -e "${INFO}FTL Checks..."
# Local, named variables
local machine
@ -1876,8 +1877,37 @@ FTLdetect() {
binary="pihole-FTL-linux-x86_32"
fi
# Install FTL
FTLinstall "${binary}"||return1
#In the next section we check to see if FTL is already installed (in case of pihole -r).
#If the installed version matches the latest version, then check the installed sha1sum of the binary vs the remote sha1sum. If they do not match, then download
echo -e "${INFO} Checking for existing FTL binary..."