diff --git a/files/update_mastodon.sh b/files/update_mastodon.sh index 4b7bd79..14324b1 100755 --- a/files/update_mastodon.sh +++ b/files/update_mastodon.sh @@ -52,7 +52,7 @@ if [ -z "${token}" ]; then exit 4 fi if [ "${tag}" == "latest" ]; then - tag=$(curl -L -s -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${token}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/mastodon/mastodon/releases/latest | jq '.tag_name') + tag=$(curl -L -s -H "Accept: application/vnd.github+json" -H "Authorization: Bearer ${token}" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/mastodon/mastodon/releases/latest | jq '.tag_name' | sed 's/"//g') if [ "${DEBUG}" == "true" ]; then echo "Latest tag is '${tag}'" fi