Skip to content

Commit

Permalink
Make curl silent and show errors only if it fails (#5485)
Browse files Browse the repository at this point in the history
* Make curl silent and show errors only if it fails

* Make curl silent and show errors only if it fails

* Make curl silent and show errors only if it fails

* Make curl silent and show errors only if it fails
  • Loading branch information
mullnerz authored and paulfantom committed Feb 24, 2019
1 parent 90975a5 commit f2aec3e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion netdata-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ download() {
url="${1}"
dest="${2}"
if command -v curl >/dev/null 2>&1; then
run curl -L --connect-timeout 10 --retry 3 "${url}" >"${dest}" || fatal "Cannot download ${url}"
run curl -sSL --connect-timeout 10 --retry 3 "${url}" >"${dest}" || fatal "Cannot download ${url}"
elif command -v wget >/dev/null 2>&1; then
run wget -T 15 -O - "${url}" >"${dest}" || fatal "Cannot download ${url}"
else
Expand Down
2 changes: 1 addition & 1 deletion packaging/installer/kickstart-static64.sh
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ download() {
url="${1}"
dest="${2}"
if command -v curl >/dev/null 2>&1; then
run curl -L --connect-timeout 10 --retry 3 "${url}" >"${dest}" || fatal "Cannot download ${url}"
run curl -sSL --connect-timeout 10 --retry 3 "${url}" >"${dest}" || fatal "Cannot download ${url}"
elif command -v wget >/dev/null 2>&1; then
run wget -T 15 -O - "${url}" >"${dest}" || fatal "Cannot download ${url}"
else
Expand Down
2 changes: 1 addition & 1 deletion packaging/installer/kickstart.sh
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ download() {
url="${1}"
dest="${2}"
if command -v curl >/dev/null 2>&1; then
run curl -L --connect-timeout 10 --retry 3 "${url}" >"${dest}" || fatal "Cannot download ${url}"
run curl -sSL --connect-timeout 10 --retry 3 "${url}" >"${dest}" || fatal "Cannot download ${url}"
elif command -v wget >/dev/null 2>&1; then
run wget -T 15 -O - "${url}" >"${dest}" || fatal "Cannot download ${url}"
else
Expand Down
2 changes: 1 addition & 1 deletion packaging/installer/netdata-updater.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ download() {
url="${1}"
dest="${2}"
if command -v curl >/dev/null 2>&1; then
curl -L --connect-timeout 10 --retry 3 "${url}" >"${dest}" || fatal "Cannot download ${url}"
curl -sSL --connect-timeout 10 --retry 3 "${url}" >"${dest}" || fatal "Cannot download ${url}"
elif command -v wget >/dev/null 2>&1; then
wget -T 15 -O - "${url}" >"${dest}" || fatal "Cannot download ${url}"
else
Expand Down

0 comments on commit f2aec3e

Please sign in to comment.