Skip to content

Commit 2dae400

Browse files
committed
Add "--quiet --show-progress" flags to wget to prevent too verbose output
1 parent a4d6b54 commit 2dae400

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

toolchain/scripts/tool_kit.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ download_pkg_from_url() {
927927
case "${DOWNLOAD_CERT_POLICY:-smart}" in
928928
"strict")
929929
echo "Downloading with strict certificate validation: $__url"
930-
if ! wget ${DOWNLOADER_FLAGS} "$__url" -O "$__filename"; then
930+
if ! wget --quiet --show-progress ${DOWNLOADER_FLAGS} "$__url" -O "$__filename"; then
931931
rm -f "$__filename"
932932
report_error "failed to download $__url (strict certificate validation)"
933933
recommend_offline_installation "$__filename" "$__url"
@@ -938,7 +938,7 @@ download_pkg_from_url() {
938938
;;
939939
"skip")
940940
echo "Downloading with certificate validation disabled: $__url"
941-
if ! wget ${DOWNLOADER_FLAGS} "$__url" -O "$__filename" --no-check-certificate; then
941+
if ! wget --quiet --show-progress ${DOWNLOADER_FLAGS} "$__url" -O "$__filename" --no-check-certificate; then
942942
rm -f "$__filename"
943943
report_error "failed to download $__url"
944944
recommend_offline_installation "$__filename" "$__url"
@@ -950,7 +950,7 @@ download_pkg_from_url() {
950950
"smart"|*)
951951
# Smart fallback: try with certificate validation first, then without
952952
echo "Attempting secure download: $__url"
953-
if wget ${DOWNLOADER_FLAGS} "$__url" -O "$__filename"; then
953+
if wget --quiet --show-progress ${DOWNLOADER_FLAGS} "$__url" -O "$__filename"; then
954954
echo "Download successful with certificate validation"
955955
else
956956
echo "Certificate validation failed, retrying without certificate check..."

0 commit comments

Comments
 (0)