From a64ac5a12734d60d02ca98e4f00167c56c060184 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 | 4 +++- 2 files changed, 4 insertions(+), 2 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..9b7bee3 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: "