zsh prompts get interfered with environment variables that are named the

directory you are in. Don't define START unless we need to.

(Thanks cgcardona)

Change-Id: I256a4db0af9b40b64bc0fe8d6e393f614132db68
master
Tim Caswell 2010-12-10 12:52:58 -08:00
parent b69a2b7fc3
commit 077a661696
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -10,7 +10,6 @@ export NVM_DIR=$(dirname ${BASH_ARGV[0]})
nvm() nvm()
{ {
START=`pwd`
if [ $# -lt 1 ]; then if [ $# -lt 1 ]; then
nvm help nvm help
return return
@ -37,6 +36,7 @@ nvm()
nvm help nvm help
return; return;
fi fi
START=`pwd`
mkdir -p "$NVM_DIR/src" && \ mkdir -p "$NVM_DIR/src" && \
cd "$NVM_DIR/src" && \ cd "$NVM_DIR/src" && \
wget "http://nodejs.org/dist/node-$2.tar.gz" -N && \ wget "http://nodejs.org/dist/node-$2.tar.gz" -N && \