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:
committed by
Jonathan Ringer
parent
f78a083ddd
commit
b7b8e9574f
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user