From cd3304548fe62acb5425833cd604919062816174 Mon Sep 17 00:00:00 2001 From: Isaac Wolkerstorfer Date: Sat, 29 Jan 2011 16:24:42 +0100 Subject: [PATCH] Fix some syntax issues --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 59d78fc..25f6c48 100644 --- a/nvm.sh +++ b/nvm.sh @@ -60,7 +60,7 @@ nvm_version() fi if [ ! "$VERSION" ]; then echo "N/A" - return -1 + return 13 elif [ -e "$NVM_DIR/$VERSION" ]; then (cd $NVM_DIR; ls -dG "$VERSION") else @@ -101,7 +101,7 @@ nvm() "install" ) if [ $# -ne 2 ]; then nvm help - return; + return fi [ "$NOCURL" ] && curl && return VERSION=`nvm_version $2`