@@ -12,14 +12,14 @@ ARCH_SUFFIX="Linux-x86_64"
1212function downloadAndExtract {
1313 FILE_TO_DOWNLOAD=$1
1414 BASE_URL=" https://github.com/arm/arm-toolchain/releases/download/release-${ATFE_VERSION} -ATfE/"
15- WGET_FLAGS=" -q --show-progress"
15+ WGET_FLAGS=" -q --show-progress -c -t 10 -T 30 "
1616 if [ " $ALLOW_INSECURE_DOWNLOAD " == " true" ]; then
1717 WGET_FLAGS=" $WGET_FLAGS --no-check-certificate"
1818 fi
1919
2020 mkdir -p $DOWNLOAD_DIR
2121 echo " Downloading $FILE_TO_DOWNLOAD ..."
22- wget -nc " $BASE_URL$FILE_TO_DOWNLOAD " -O " $DOWNLOAD_DIR /$FILE_TO_DOWNLOAD " $WGET_FLAGS
22+ wget " $BASE_URL$FILE_TO_DOWNLOAD " -O " $DOWNLOAD_DIR /$FILE_TO_DOWNLOAD " $WGET_FLAGS
2323
2424 if [ $? -ne 0 ]; then
2525 echo " Failed to download $FILE_TO_DOWNLOAD " >&2
@@ -29,7 +29,7 @@ function downloadAndExtract {
2929 # Also download the SHA256 checksum file
3030 SHA256_FILE=" ${FILE_TO_DOWNLOAD} .sha256"
3131 echo " Downloading checksum file..."
32- wget -nc " $BASE_URL$SHA256_FILE " -O " $DOWNLOAD_DIR /$SHA256_FILE " $WGET_FLAGS
32+ wget " $BASE_URL$SHA256_FILE " -O " $DOWNLOAD_DIR /$SHA256_FILE " $WGET_FLAGS
3333
3434 if [ $? -ne 0 ]; then
3535 echo " Failed to download $SHA256_FILE " >&2
@@ -58,14 +58,14 @@ function downloadAndExtract {
5858function downloadAndExtractOverlay {
5959 FILE_TO_DOWNLOAD=$1
6060 BASE_URL=" https://github.com/arm/arm-toolchain/releases/download/release-${ATFE_VERSION} -ATfE/"
61- WGET_FLAGS=" -q --show-progress"
61+ WGET_FLAGS=" -q --show-progress -c -t 10 -T 30 "
6262 if [ " $ALLOW_INSECURE_DOWNLOAD " == " true" ]; then
6363 WGET_FLAGS=" $WGET_FLAGS --no-check-certificate"
6464 fi
6565
6666 mkdir -p $DOWNLOAD_DIR
6767 echo " Downloading overlay $FILE_TO_DOWNLOAD ..."
68- wget -nc " $BASE_URL$FILE_TO_DOWNLOAD " -O " $DOWNLOAD_DIR /$FILE_TO_DOWNLOAD " $WGET_FLAGS
68+ wget " $BASE_URL$FILE_TO_DOWNLOAD " -O " $DOWNLOAD_DIR /$FILE_TO_DOWNLOAD " $WGET_FLAGS
6969
7070 if [ $? -ne 0 ]; then
7171 echo " Failed to download overlay $FILE_TO_DOWNLOAD " >&2
@@ -75,7 +75,7 @@ function downloadAndExtractOverlay {
7575 # Download overlay checksum
7676 SHA256_FILE=" ${FILE_TO_DOWNLOAD} .sha256"
7777 echo " Downloading overlay checksum file..."
78- wget -nc " $BASE_URL$SHA256_FILE " -O " $DOWNLOAD_DIR /$SHA256_FILE " $WGET_FLAGS
78+ wget " $BASE_URL$SHA256_FILE " -O " $DOWNLOAD_DIR /$SHA256_FILE " $WGET_FLAGS
7979
8080 if [ $? -ne 0 ]; then
8181 echo " Failed to download overlay $SHA256_FILE " >&2
0 commit comments