Skip to content

Commit

Permalink
Add some more curl → wget argument munging
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 7, 2014
1 parent b9383c9 commit eda8ffb
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions install.sh
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions nvm.sh
Expand Up @@ -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
Expand Down

0 comments on commit eda8ffb

Please sign in to comment.