Skip to content

Commit

Permalink
removed use of curl-option --no-progress-meter
Browse files Browse the repository at this point in the history
  • Loading branch information
aho-dips committed Feb 1, 2024
1 parent db760da commit a64ac5a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
```


Expand Down
4 changes: 3 additions & 1 deletion smud-cli/download-and-install-cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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: "
Expand Down

0 comments on commit a64ac5a

Please sign in to comment.