Skip to content

Commit

Permalink
Hotfix: correctly map curl's -C - to wget
Browse files Browse the repository at this point in the history
wget doesn't need or accept the `-` parameter to `-c`. This incorrect
mapping causes `nvm install` to fail on a curlless OS.
  • Loading branch information
mgol committed Jul 16, 2014
1 parent 4895aeb commit 21fa842
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ nvm_download() {
ARGS=${ARGS/-I /}
ARGS=${ARGS/-s /-q }
ARGS=${ARGS/-o /-O }
ARGS=${ARGS/-C /-c }
ARGS=${ARGS/-C - /-c }
wget $ARGS
fi
}
Expand Down
2 changes: 1 addition & 1 deletion nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ nvm_download() {
ARGS=${ARGS/-I /}
ARGS=${ARGS/-s /-q }
ARGS=${ARGS/-o /-O }
ARGS=${ARGS/-C /-c }
ARGS=${ARGS/-C - /-c }
wget $ARGS
fi
}
Expand Down

0 comments on commit 21fa842

Please sign in to comment.