We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8c574d commit cdc08a2Copy full SHA for cdc08a2
1 file changed
setup.sh
@@ -67,13 +67,15 @@ download_prebuilt() {
67
fi
68
local url="https://github.com/${repo}/releases/latest/download/${binary}-${BINARY_ARCH}"
69
echo " Downloading prebuilt ${binary} for ${BINARY_ARCH}..."
70
- if curl -fSL --connect-timeout 10 --max-time 120 -o "$dest" "$url" 2>/dev/null; then
+ local tmpfile="${dest}.download"
71
+ if curl -fSL --connect-timeout 15 --max-time 300 --retry 2 -o "$tmpfile" "$url" 2>&1; then
72
+ mv "$tmpfile" "$dest"
73
chmod +x "$dest"
74
echo " ✓ Downloaded prebuilt ${binary} (${BINARY_ARCH})"
75
return 0
76
else
77
echo " ⚠ Prebuilt binary not available — will build from source"
- rm -f "$dest"
78
+ rm -f "$tmpfile"
79
return 1
80
81
}
0 commit comments