From 176634756975a89f338646ce222ba1dc9675aa2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arild=20H=C3=A5kon=20Olsen?= Date: Thu, 1 Feb 2024 11:39:11 +0100 Subject: [PATCH] removed use of curl-option --no-progress-meter --- README.md | 2 +- smud-cli/download-and-install-cli.sh | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1a3a692..b29a872 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,7 @@ Requirements: 1. Open powershell or bash console 2. Run the command: ```shell - bash -c "curl --ssl-no-revoke -H Accept:application/vnd.github.v3.raw https://api.github.com/repos/DIPSAS/smud-cli/contents/smud-cli/download-and-install-cli.sh --no-progress-meter | bash" + bash -c "curl --ssl-no-revoke -H Accept:application/vnd.github.v3.raw https://api.github.com/repos/DIPSAS/smud-cli/contents/smud-cli/download-and-install-cli.sh | bash" ``` diff --git a/smud-cli/download-and-install-cli.sh b/smud-cli/download-and-install-cli.sh index 6d4f688..26dddb5 100644 --- a/smud-cli/download-and-install-cli.sh +++ b/smud-cli/download-and-install-cli.sh @@ -22,7 +22,9 @@ AUTH_USER="" mkdir $download_folder cd $download_folder -response="$(curl --ssl-no-revoke --no-progress-meter -o $download_json_file $AUTH_TOKEN "https://api.github.com/repos/DIPSAS/smud-cli/contents/$folder" 2>&1)" || { + +printf "${gray}Download '$folder' folder spec: ${normal}\n" +response="$(curl --ssl-no-revoke -o $download_json_file $AUTH_TOKEN "https://api.github.com/repos/DIPSAS/smud-cli/contents/$folder" 2>&1)" || { echo "Failed to download '$download_json_file' file" if [ "$response" ]; then echo "Error: " @@ -62,7 +64,7 @@ for url in "${download_urls[@]}"; do downloaded_file=$(basename $url) if [ "$file" ]; then printf "${gray}Download '$file' file: ${normal}\n" - echo "Download:$url => $file" + # echo "Download:$url => $file" curl --ssl-no-revoke -o $file $url # > /dev/null 2>&1 # echo "Downloaded" else