From ab026a5ea54aa03062d50429c10cf7b55c3e702d Mon Sep 17 00:00:00 2001 From: sfalexrog Date: Fri, 8 Feb 2019 15:16:17 +0300 Subject: [PATCH] Try to be more verbose with wget --- builder/image-build.sh | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/builder/image-build.sh b/builder/image-build.sh index b61116af..909a94ce 100755 --- a/builder/image-build.sh +++ b/builder/image-build.sh @@ -59,10 +59,9 @@ get_image() { local RPI_IMAGE_NAME=$(echo ${RPI_ZIP_NAME} | sed 's/zip/img/') if [ ! -e "${BUILD_DIR}/${RPI_ZIP_NAME}" ]; then - echo_stamp "Downloading original Linux distribution" \ - && wget -nv -O ${BUILD_DIR}/${RPI_ZIP_NAME} $2 \ - && echo_stamp "Downloading complete" "SUCCESS" \ - || (echo_stamp "Downloading was failed!" "ERROR"; exit 1) + echo_stamp "Downloading original Linux distribution" + wget --progress=bar:force:noscroll -O ${BUILD_DIR}/${RPI_ZIP_NAME} $2 + echo_stamp "Downloading complete" "SUCCESS" \ else echo_stamp "Linux distribution already donwloaded"; fi echo_stamp "Unzipping Linux distribution image" \