From f82f38be90801c9c5ef83f9336edbf614970aaff Mon Sep 17 00:00:00 2001 From: messju mohr Date: Tue, 25 Feb 2014 11:58:20 +0100 Subject: [PATCH] fixed nvm_version result when multiple versions match the given pattern --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index cf468ba..a368ac1 100644 --- a/nvm.sh +++ b/nvm.sh @@ -51,7 +51,7 @@ nvm_version() { PATTERN='current' fi - VERSION=`nvm_ls $PATTERN` + VERSION=`nvm_ls $PATTERN | tail -n1` echo "$VERSION" if [ "$VERSION" = 'N/A' ]; then