Skip to content

Commit 7bd88e9

Browse files
committed
chore(utils.bash): add debug output
1 parent d952be3 commit 7bd88e9

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

lib/utils.bash

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,12 @@ download_release() {
112112
esac
113113

114114
echo "* Downloading $TOOL_NAME release $version..."
115-
curl "${curl_opts[@]}" -o "$filename" -C - "$url" || fail "Could not download $url"
115+
echo " URL: $url" >&2
116+
curl -fsSL -o "$filename" "$url" || fail "Could not download $url"
117+
118+
# Debug: show file size and first bytes
119+
echo " Downloaded file size: $(wc -c < "$filename") bytes" >&2
120+
echo " First bytes (hex): $(head -c 8 "$filename" | xxd -p)" >&2
116121
}
117122

118123
install_version() {

0 commit comments

Comments
 (0)