Add some more curl → wget argument munging

This commit is contained in:
Jordan Harband
2014-07-07 13:32:10 -07:00
parent b9383c9016
commit eda8ffbcc4
2 changed files with 7 additions and 0 deletions
+3
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
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