From docker/docker - Standardize "curl" arguments across the repo to be or include "-sSL"

- https://botbot.me/freenode/docker-dev/msg/17315692/
- https://botbot.me/freenode/docker-dev/msg/17315994/

Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
This commit is contained in:
Tianon Gravi authored and Eli Uriegas committed 2017-06-16 11:53:39 -07:00
1 parent 8146f363f0
commit 6fe43ce8d3
1 file changed
+3 -3
+3 -3
View File
@@ -2,7 +2,7 @@
set -e
#
# This script is meant for quick & easy install via:
# 'curl -sL https://get.docker.io/ | sh'
# 'curl -sSL https://get.docker.io/ | sh'
# or:
# 'wget -qO- https://get.docker.io/ | sh'
#
@@ -54,7 +54,7 @@ fi
curl=''
if command_exists curl; then
curl='curl -sL'
curl='curl -sSL'
elif command_exists wget; then
curl='wget -qO-'
elif command_exists busybox && busybox --list-modules | grep -q wget; then
@@ -133,7 +133,7 @@ case "$lsb_dist" in
if [ -z "$curl" ]; then
apt_get_update
( set -x; $sh_c 'sleep 3; apt-get install -y -q curl' )
curl='curl -sL'
curl='curl -sSL'
fi
(
set -x