From 523f6501576f76bfcc7e5d3ddc3cf0a287089790 Mon Sep 17 00:00:00 2001 From: Dan Schaper Date: Tue, 12 Jan 2021 13:42:51 -0800 Subject: [PATCH] Use the 'Location:' header only. Signed-off-by: Dan Schaper --- automated install/basic-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/automated install/basic-install.sh b/automated install/basic-install.sh index 1f5784c7..37cba335 100755 --- a/automated install/basic-install.sh +++ b/automated install/basic-install.sh @@ -2555,7 +2555,7 @@ FTLcheckUpdate() { FTLversion=$(/usr/bin/pihole-FTL tag) local FTLlatesttag - if ! FTLlatesttag=$(curl -sI https://github.com/pi-hole/FTL/releases/latest | grep --color=never -i Location | awk -F / '{print $NF}' | tr -d '[:cntrl:]'); then + if ! FTLlatesttag=$(curl -sI https://github.com/pi-hole/FTL/releases/latest | grep --color=never -i Location: | awk -F / '{print $NF}' | tr -d '[:cntrl:]'); then # There was an issue while retrieving the latest version printf " %b Failed to retrieve latest FTL release metadata" "${CROSS}" return 3