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.
master
Michał Gołębiowski 2014-07-16 10:56:19 +02:00
parent 4895aebf0a
commit 21fa84225c
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ nvm_download() {
ARGS=${ARGS/-I /} ARGS=${ARGS/-I /}
ARGS=${ARGS/-s /-q } ARGS=${ARGS/-s /-q }
ARGS=${ARGS/-o /-O } ARGS=${ARGS/-o /-O }
ARGS=${ARGS/-C /-c } ARGS=${ARGS/-C - /-c }
wget $ARGS wget $ARGS
fi fi
} }

2
nvm.sh
View File

@ -23,7 +23,7 @@ nvm_download() {
ARGS=${ARGS/-I /} ARGS=${ARGS/-I /}
ARGS=${ARGS/-s /-q } ARGS=${ARGS/-s /-q }
ARGS=${ARGS/-o /-O } ARGS=${ARGS/-o /-O }
ARGS=${ARGS/-C /-c } ARGS=${ARGS/-C - /-c }
wget $ARGS wget $ARGS
fi fi
} }