Permalink
Browse files

Hotfix: correctly map curl's `-C -` to wget

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...
1 parent 4895aeb commit 21fa84225c543de41e1d11c68d62edd925c1034b @mgol mgol committed Jul 16, 2014
Showing with 2 additions and 2 deletions.
  1. +1 −1 install.sh
  2. +1 −1 nvm.sh
View
@@ -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
}
View
2 nvm.sh
@@ -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
}

0 comments on commit 21fa842

Please sign in to comment.