Merge pull request #2882 from pi-hole/fix/FTL-latest-tag-not-found

Fix error when getting latest FTL tag
This commit is contained in:
Dan Schaper 2019-08-21 15:31:04 -07:00 committed by GitHub
commit 1c50caa8ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2391,7 +2391,7 @@ FTLcheckUpdate() {
return 3
fi
FTLlatesttag=$(grep 'Location' < "${FTLreleaseData}" | awk -F '/' '{print $NF}' | tr -d '\r\n')
FTLlatesttag=$(grep 'Location' <<< "${FTLreleaseData}" | awk -F '/' '{print $NF}' | tr -d '\r\n')
if [[ "${FTLversion}" != "${FTLlatesttag}" ]]; then
return 0