diff --git a/README.markdown b/README.markdown index f8c186d..44474fd 100644 --- a/README.markdown +++ b/README.markdown @@ -124,7 +124,7 @@ If you try to install a node version and the installation fails, be sure to dele Where's my 'sudo node'? Checkout this link: - https://github.com/creationix/nvm/issues/43 +https://github.com/creationix/nvm/issues/43 on Arch Linux and other systems using python3 by default, before running *install* you need to diff --git a/nvm.sh b/nvm.sh index b302c5c..eefffdc 100755 --- a/nvm.sh +++ b/nvm.sh @@ -215,7 +215,7 @@ nvm() [ ! -z $tarball ] && \ mkdir -p "$NVM_DIR/src" && \ cd "$NVM_DIR/src" && \ - curl -C - --progress-bar $tarball -o "node-$VERSION.tar.gz" && \ + curl --progress-bar $tarball -o "node-$VERSION.tar.gz" && \ tar -xzf "node-$VERSION.tar.gz" && \ cd "node-$VERSION" && \ ./configure --prefix="$NVM_DIR/$VERSION" $ADDITIONAL_PARAMETERS && \ @@ -406,4 +406,4 @@ nvm() esac } -nvm ls default >/dev/null 2>&1 && nvm use default >/dev/null +nvm ls default &>/dev/null && nvm use default >/dev/null || true