From 6bf4d90fbed9ea8001bd828b11dd9760397d2365 Mon Sep 17 00:00:00 2001 From: "Antonio J. Delgado" Date: Fri, 16 Feb 2024 14:19:45 +0200 Subject: [PATCH] updater use headers --- files/update_mastodon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/update_mastodon.sh b/files/update_mastodon.sh index d0f948b..ab2104e 100755 --- a/files/update_mastodon.sh +++ b/files/update_mastodon.sh @@ -55,7 +55,7 @@ else while [ -z "${next_page}" ] do tmpfile=$(mktemp /tmp/tmp.XXXXX) - releases=$(curl -L -s -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${token}" -H "X-GitHub-Api-Version: 2022-11-28" "${next_page}" | jq '.[]|.tag_name' 2> "${tmpfile}") + releases=$(curl -L -v -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${token}" -H "X-GitHub-Api-Version: 2022-11-28" "${next_page}" | jq '.[]|.tag_name' 2> "${tmpfile}") echo "${releases}" >> "${releases_file}" next_page=$(grep '< link: ' "${tmpfile}" | sed 's/< link: //g' | sed 's/, /\n/g' | grep 'rel="next"' | grep -o 'https://[^>]*') done