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 1766347
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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
6 changes: 4 additions & 2 deletions 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 Expand Up @@ -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
Expand Down

0 comments on commit 1766347

Please sign in to comment.