We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12295a4 commit ed93413Copy full SHA for ed93413
1 file changed
do-install/download-uncompress.sh
@@ -35,10 +35,12 @@ function download() {
35
36
mkdir -p $(dirname "$dst")
37
local tname="${dst}.tmp"
38
- curl -L "$MR_DOWNLOAD_URL" -o "$tname"
+ curl -fL --retry 3 --retry-delay 5 --retry-max-time 30 "$MR_DOWNLOAD_URL" -o "$tname"
39
40
if [[ $? -eq 0 ]];then
41
mv "$tname" "${dst}"
42
+ else
43
+ rm -f "$tname"
44
fi
45
}
46
0 commit comments