mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-11-15 02:42:58 +00:00
fix stickler complaints
Signed-off-by: Adam Warner <adamw@rner.email>
This commit is contained in:
parent
8cf8da4c78
commit
6584933e92
1 changed files with 8 additions and 4 deletions
|
@ -1931,8 +1931,10 @@ FTLdetect() {
|
||||||
FTLinstall "${binary}" || return 1
|
FTLinstall "${binary}" || return 1
|
||||||
else
|
else
|
||||||
if [[ ${ftlLoc} ]]; then
|
if [[ ${ftlLoc} ]]; then
|
||||||
local FTLversion=$(/usr/bin/pihole-FTL tag)
|
local FTLversion
|
||||||
local FTLlatesttag=$(curl -sI https://github.com/pi-hole/FTL/releases/latest | grep 'Location' | awk -F '/' '{print $NF}' | tr -d '\r\n')
|
FTLversion=$(/usr/bin/pihole-FTL tag)
|
||||||
|
local FTLlatesttag
|
||||||
|
FTLlatesttag=$(curl -sI https://github.com/pi-hole/FTL/releases/latest | grep 'Location' | awk -F '/' '{print $NF}' | tr -d '\r\n')
|
||||||
|
|
||||||
if [[ "${FTLversion}" != "${FTLlatesttag}" ]]; then
|
if [[ "${FTLversion}" != "${FTLlatesttag}" ]]; then
|
||||||
# Install FTL
|
# Install FTL
|
||||||
|
@ -1940,8 +1942,10 @@ FTLdetect() {
|
||||||
else
|
else
|
||||||
echo -e " ${INFO} Latest FTL Binary already installed (${FTLlatesttag}). Confirming Checksum..."
|
echo -e " ${INFO} Latest FTL Binary already installed (${FTLlatesttag}). Confirming Checksum..."
|
||||||
|
|
||||||
local remoteSha1=$(curl -sSL --fail "https://github.com/pi-hole/FTL/releases/download/${FTLversion%$'\r'}/${binary}.sha1" | cut -d ' ' -f 1)
|
local remoteSha1
|
||||||
local localSha1=$(sha1sum "$(which pihole-FTL)" | cut -d ' ' -f 1)
|
remoteSha1=$(curl -sSL --fail "https://github.com/pi-hole/FTL/releases/download/${FTLversion%$'\r'}/${binary}.sha1" | cut -d ' ' -f 1)
|
||||||
|
local localSha1
|
||||||
|
localSha1=$(sha1sum "$(which pihole-FTL)" | cut -d ' ' -f 1)
|
||||||
|
|
||||||
if [[ "${remoteSha1}" != "${localSha1}" ]]; then
|
if [[ "${remoteSha1}" != "${localSha1}" ]]; then
|
||||||
echo -e " ${INFO} Corruption detected..."
|
echo -e " ${INFO} Corruption detected..."
|
||||||
|
|
Loading…
Reference in a new issue