remove double quotes

This commit is contained in:
Antonio J. Delgado 2024-02-16 18:01:23 +02:00
parent f23f051c0d
commit f87ee554c2

View file

@ -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