tree-sitter: fix update script's prefetch

It was including the quotes from jq into the tag name, which is
incorrect
This commit is contained in:
Bernardo Meurer 2022-02-09 16:19:50 -08:00 committed by Jonathan Ringer
parent f78a083ddd
commit b7b8e9574f

View file

@ -376,7 +376,7 @@ let
if [[ "$(printf "%s" "$res" | ${jq}/bin/jq '.message?')" =~ "rate limit" ]]; then
echo "rate limited" >&2
fi
release=$(printf "%s" "$res" | ${jq}/bin/jq '.tag_name')
release="$(printf "%s" "$res" | ${jq}/bin/jq -r '.tag_name')"
# github sometimes returns an empty list even tough there are releases
if [ "$release" = "null" ]; then
echo "uh-oh, latest for ${orga + "/" + repo} is not there, using HEAD" >&2