If cd fails, don't run pwd

Whitespace...
master
Gerhard Lazu 2012-07-03 10:36:23 +01:00
parent c371a3a26b
commit 3e62657575
1 changed files with 6 additions and 6 deletions

2
nvm.sh
View File

@ -7,7 +7,7 @@
# Auto detect the NVM_DIR # Auto detect the NVM_DIR
if [ ! -d "$NVM_DIR" ]; then if [ ! -d "$NVM_DIR" ]; then
export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}); pwd) export NVM_DIR=$(cd $(dirname ${BASH_SOURCE[0]:-$0}) && pwd)
fi fi
# Expand a version using the version cache # Expand a version using the version cache