From 07025f437f5252fafe2d62e72e2ae4283806911e Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Thu, 21 Nov 2024 00:41:12 +0200 Subject: [PATCH] scripts: Fix using deprecated/removed wget option Recent wget versions don't have the --show-progress option anymore and will generate a "wget: unrecognized option '--show-progress'" error (this happens e.g. with latest Fedora). The correct option to use seems to be --progress=bar, which should do the same thing. Signed-off-by: Johan Hedberg --- scripts/template_setup_posix | 2 +- scripts/template_setup_win | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/template_setup_posix b/scripts/template_setup_posix index 71ea4e90..8de31247 100644 --- a/scripts/template_setup_posix +++ b/scripts/template_setup_posix @@ -215,7 +215,7 @@ for toolchain in ${inst_toolchains[@]}; do echo "Installing '${toolchain}' toolchain ..." # Download toolchain archive - wget -q --show-progress -N -O "${toolchain_filename}" "${toolchain_uri}" + wget -q --progress=bar -N -O "${toolchain_filename}" "${toolchain_uri}" if [ $? != 0 ]; then rm -f "${toolchain_filename}" echo "ERROR: Toolchain download failed" diff --git a/scripts/template_setup_win b/scripts/template_setup_win index d3e1b1cc..c4d16c97 100644 --- a/scripts/template_setup_win +++ b/scripts/template_setup_win @@ -143,7 +143,7 @@ for %%t in (%INST_TOOLCHAINS%) do ( echo Installing '%%t' toolchain ... REM # Download toolchain archive - wget -q --show-progress -N -O !TOOLCHAIN_FILENAME! !TOOLCHAIN_URI! + wget -q --progress=bar -N -O !TOOLCHAIN_FILENAME! !TOOLCHAIN_URI! if [!ERRORLEVEL!] neq [0] ( del /q !TOOLCHAIN_FILENAME! echo ERROR: Toolchain download failed