Add some more curl → wget argument munging
parent
b9383c9016
commit
eda8ffbcc4
|
@ -19,8 +19,11 @@ elif nvm_has "wget"; then
|
||||||
# Emulate curl with wget
|
# Emulate curl with wget
|
||||||
nvm_curl() {
|
nvm_curl() {
|
||||||
ARGS="$* "
|
ARGS="$* "
|
||||||
|
ARGS=${ARGS/--progress-bar /}
|
||||||
|
ARGS=${ARGS/-L /}
|
||||||
ARGS=${ARGS/-s /-q }
|
ARGS=${ARGS/-s /-q }
|
||||||
ARGS=${ARGS/-o /-O }
|
ARGS=${ARGS/-o /-O }
|
||||||
|
ARGS=${ARGS/-C /-c }
|
||||||
wget "$ARGS"
|
wget "$ARGS"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
4
nvm.sh
4
nvm.sh
|
@ -20,8 +20,12 @@ elif nvm_has "wget"; then
|
||||||
# Emulate curl with wget
|
# Emulate curl with wget
|
||||||
nvm_curl() {
|
nvm_curl() {
|
||||||
ARGS="$* "
|
ARGS="$* "
|
||||||
|
ARGS=${ARGS/--progress-bar /}
|
||||||
|
ARGS=${ARGS/-L /}
|
||||||
|
ARGS=${ARGS/-I /}
|
||||||
ARGS=${ARGS/-s /-q }
|
ARGS=${ARGS/-s /-q }
|
||||||
ARGS=${ARGS/-o /-O }
|
ARGS=${ARGS/-o /-O }
|
||||||
|
ARGS=${ARGS/-C /-c }
|
||||||
wget "$ARGS"
|
wget "$ARGS"
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue