From f196ace5ddffd7e7ef59f65864449ee87de6611a Mon Sep 17 00:00:00 2001 From: Daniel Bretoi Date: Fri, 19 Dec 2014 11:05:51 -0800 Subject: [PATCH] style --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index 721a889..94b40f5 100644 --- a/nvm.sh +++ b/nvm.sh @@ -965,7 +965,7 @@ nvm() { if [ "_$VERSION" = '_system' ]; then if nvm_has_system_node >/dev/null 2>&1; then - echo $(nvm deactivate > /dev/null 2>&1 && echo $(which node)) + echo $(nvm use system > /dev/null 2>&1 && echo $(which node)) return else echo "System version of node not found." >&2 @@ -982,7 +982,7 @@ nvm() { echo "$VERSION version is not installed yet" >&2 return 1 fi - echo $NVM_DIR/$VERSION/bin/node + echo $(nvm use "$VERSION" >/dev/null 2>&1 && which node) ;; "alias" ) mkdir -p "$NVM_DIR/alias"