From f6d370d6110272f0b3345b289940efa1c86f27a9 Mon Sep 17 00:00:00 2001 From: Leonid Pliushch Date: Sun, 13 Jun 2021 22:34:38 +0300 Subject: [PATCH] check-updates.sh: follow redirects --- scripts/updates/check-updates.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/updates/check-updates.sh b/scripts/updates/check-updates.sh index 70efd67e0..7ea91039a 100755 --- a/scripts/updates/check-updates.sh +++ b/scripts/updates/check-updates.sh @@ -39,7 +39,7 @@ if [ -f "${BASEDIR}/github-projects.txt" ]; then fi # Latest version is the current release tag on Github. - latest_version=$(curl --silent -H "Authorization: token ${GITHUB_API_TOKEN}" "https://api.github.com/repos/${project}/releases/latest" | jq -r .tag_name) + latest_version=$(curl --silent --location -H "Authorization: token ${GITHUB_API_TOKEN}" "https://api.github.com/repos/${project}/releases/latest" | jq -r .tag_name) # Remove leading 'v' which is common in version tag. latest_version=${latest_version#v}