Use curl instead of wget in install_vault.sh.

curl is installed by default on many systems

Original pull request: gh-505.
This commit is contained in:
Brian Demers
2019-11-11 08:00:33 -05:00
committed by Mark Paluch
parent bd2341aec1
commit 8c97561787
2 changed files with 4 additions and 4 deletions

View File

@@ -78,7 +78,7 @@ If you'd rather like the latest snapshots of the upcoming major version, use our
To get started with Vault and this guide you need a
*NIX-like operating systems that provides:
* `wget`, `openssl` and `unzip`
* `curl`, `openssl` and `unzip`
* at least Java 8 and a properly configured `JAVA_HOME` environment variable
*Install Vault*

View File

@@ -104,12 +104,12 @@ function download() {
# install Vault
say "Downloading Vault from ${VAULT_URL}"
verbose "wget ${VAULT_URL} -O ${VAULT_FILE}"
verbose "curl ${VAULT_URL} --output ${VAULT_FILE}"
if [[ ${VERBOSE} == true ]]; then
wget "${VAULT_URL}" -O "${VAULT_FILE}"
curl "${VAULT_URL}" -vs --output "${VAULT_FILE}"
else
wget "${VAULT_URL}" -q -O "${VAULT_FILE}"
curl "${VAULT_URL}" -s --output "${VAULT_FILE}"
fi
if [[ $? != 0 ]]; then