fix(ci): show more info on bottle fetch errors

Otherwise we just get non-descript stuff like:

jq: parse error: Invalid numeric literal at line 1, column 7

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
2025-11-06 11:26:56 +01:00
parent 252a5547e2
commit 196e55407f
+4 -1
View File
@@ -10,7 +10,10 @@ function get_gh_pkgs_token() {
}
function get_bottle_json() {
brew info --json=v1 "${1}" | jq ".[0].bottle.stable.files[\"${2}\"]"
BOTTLE_INFO=$(brew info --json=v1 "${1}")
{
echo "${BOTTLE_INFO}" | jq ".[0].bottle.stable.files[\"${2}\"]"
} || echo -e "Failed to get bottle files from:\n${BOTTLE_INFO}"
}
function fetch_bottle() {