Merge 2671e14382 into b5e0603e64
This commit is contained in:
commit
e629296a73
4
nvm.sh
4
nvm.sh
|
|
@ -22,7 +22,7 @@ nvm_is_alias() {
|
|||
nvm_get_latest() {
|
||||
local NVM_LATEST_URL
|
||||
if nvm_has "curl"; then
|
||||
NVM_LATEST_URL="$(curl -q -w "%{url_effective}\n" -L -s -S http://latest.nvm.sh -o /dev/null)"
|
||||
NVM_LATEST_URL="$(curl -w "%{url_effective}\n" -L -s -S http://latest.nvm.sh -o /dev/null)"
|
||||
elif nvm_has "wget"; then
|
||||
NVM_LATEST_URL="$(wget http://latest.nvm.sh --server-response -O /dev/null 2>&1 | command awk '/^ Location: /{DEST=$2} END{ print DEST }')"
|
||||
else
|
||||
|
|
@ -39,7 +39,7 @@ nvm_get_latest() {
|
|||
|
||||
nvm_download() {
|
||||
if nvm_has "curl"; then
|
||||
curl -q $*
|
||||
curl $*
|
||||
elif nvm_has "wget"; then
|
||||
# Emulate curl with wget
|
||||
ARGS=$(echo "$*" | command sed -e 's/--progress-bar /--progress=bar /' \
|
||||
|
|
|
|||
Loading…
Reference in New Issue