mirror of
https://github.com/pi-hole/pi-hole.git
synced 2025-04-22 23:30:13 +00:00
move call to get_binary_name
into FTLcheckUpdate()
to avoid having to run that first
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
56278c6394
commit
f37b2bc7c1
2 changed files with 8 additions and 8 deletions
|
@ -1893,7 +1893,14 @@ get_binary_name() {
|
|||
|
||||
FTLcheckUpdate()
|
||||
{
|
||||
local ftlLoc=$(which pihole-FTL 2>/dev/null)
|
||||
get_binary_name
|
||||
|
||||
#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..."
|
||||
|
||||
local ftlLoc
|
||||
ftlLoc=$(which pihole-FTL 2>/dev/null)
|
||||
|
||||
local ftlBranch
|
||||
|
||||
|
@ -1957,11 +1964,6 @@ FTLdetect() {
|
|||
echo ""
|
||||
echo -e " ${INFO} FTL Checks..."
|
||||
|
||||
get_binary_name
|
||||
|
||||
#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..."
|
||||
if FTLcheckUpdate ; then
|
||||
FTLinstall "${binary}" || return 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue