Skip to content

Commit

Permalink
suppress curl progress bar for install --activate
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinNowak committed May 15, 2016
1 parent 9f506e1 commit 9beade8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion script/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,11 @@ fatal() {

curl() {
: ${curl_user_agent:="installer/install.sh $(command curl --version | head -n 1)"}
command curl -f#L --retry 3 -A "${curl_user_agent}" "$@"
if [ "$verbosity" -gt 0 ]; then
command curl -f#L --retry 3 -A "${curl_user_agent}" "$@"
else
command curl -fsSL --retry 3 -A "${curl_user_agent}" "$@"
fi
}

# ------------------------------------------------------------------------------
Expand Down

0 comments on commit 9beade8

Please sign in to comment.