Skip to content

Commit

Permalink
Update install.sh
Browse files Browse the repository at this point in the history
add --timeout for wget
  • Loading branch information
chendelin1982 authored Jan 13, 2025
1 parent 15fdd5e commit 543101f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion install/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ download_artifact() {
local max_attempts="$3"

for ((i=1; i<=max_attempts; i++)); do
wget -P /tmp "$artifact_url/$source_zip"
wget --timeout=4 --read-timeout=30 -P /tmp "$artifact_url/$source_zip"
if [ $? -eq 0 ]; then
echo "Downloaded successfully using wget on attempt $i."
return 0
Expand Down

0 comments on commit 543101f

Please sign in to comment.