From 21fa84225c543de41e1d11c68d62edd925c1034b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Go=C5=82e=CC=A8biowski?= Date: Wed, 16 Jul 2014 10:56:19 +0200 Subject: [PATCH] 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. --- install.sh | 2 +- nvm.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/install.sh b/install.sh index 3caeb2f..ef3cf16 100755 --- a/install.sh +++ b/install.sh @@ -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 } diff --git a/nvm.sh b/nvm.sh index 95e8710..04565dd 100644 --- a/nvm.sh +++ b/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 }