commit
261164d46d
14
bin/install
14
bin/install
|
@ -10,10 +10,20 @@ binary_url="https://${bucket_name}.s3.amazonaws.com/${tarball_name}"
|
|||
|
||||
echo "Downloading binary: ${binary_url}"
|
||||
|
||||
curl --fail -I $binary_url
|
||||
is_curl=true
|
||||
if hash curl 2>/dev/null; then
|
||||
curl --fail -I $binary_url
|
||||
else
|
||||
is_curl=false
|
||||
wget --server-response --spider $binary_url
|
||||
fi
|
||||
|
||||
if test $? -eq 0; then
|
||||
curl $binary_url > $tarball_name
|
||||
if [ "${is_curl}" = true ]; then
|
||||
curl $binary_url > $tarball_name
|
||||
else
|
||||
wget $binary_url
|
||||
fi
|
||||
if test -e "${tarball_name}"; then
|
||||
echo "Unpacking binary distribution"
|
||||
tar -xvzf $tarball_name
|
||||
|
|
Loading…
Reference in New Issue