From 196e55407f25b83dafb2f0daff58dd1e40da03ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 5 Nov 2025 13:39:09 +0100 Subject: [PATCH] fix(ci): show more info on bottle fetch errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- scripts/fetch-brew-bottle.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/fetch-brew-bottle.sh b/scripts/fetch-brew-bottle.sh index 0ed667ff56..027fb68372 100755 --- a/scripts/fetch-brew-bottle.sh +++ b/scripts/fetch-brew-bottle.sh @@ -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() {