Add some more curl → wget argument munging

master
Jordan Harband 2014-07-07 09:55:03 -07:00
parent b9383c9016
commit eda8ffbcc4
2 changed files with 7 additions and 0 deletions

View File

@ -19,8 +19,11 @@ elif nvm_has "wget"; then
# Emulate curl with wget
nvm_curl() {
ARGS="$* "
ARGS=${ARGS/--progress-bar /}
ARGS=${ARGS/-L /}
ARGS=${ARGS/-s /-q }
ARGS=${ARGS/-o /-O }
ARGS=${ARGS/-C /-c }
wget "$ARGS"
}
fi

4
nvm.sh
View File

@ -20,8 +20,12 @@ elif nvm_has "wget"; then
# Emulate curl with wget
nvm_curl() {
ARGS="$* "
ARGS=${ARGS/--progress-bar /}
ARGS=${ARGS/-L /}
ARGS=${ARGS/-I /}
ARGS=${ARGS/-s /-q }
ARGS=${ARGS/-o /-O }
ARGS=${ARGS/-C /-c }
wget "$ARGS"
}
fi