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