Skip to content

Commit

Permalink
add -fS to curl so it fails clearly (istio#3743)
Browse files Browse the repository at this point in the history
* add -f to curl so it fails clearly

* `-o -` is useless; adding -S for show errors too
  • Loading branch information
ldemailly authored Feb 24, 2018
1 parent f78803f commit 710961d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ if [ ! -f $OUT/envoy-$PROXYVERSION ] ; then
DOWNLOAD_COMMAND=""
if command -v curl > /dev/null; then
if curl --version | grep Protocols | grep https > /dev/null; then
DOWNLOAD_COMMAND='curl -Lso -'
DOWNLOAD_COMMAND='curl -fLSs'
else
echo curl does not support https, will try wget for downloading files.
fi
Expand Down

0 comments on commit 710961d

Please sign in to comment.