From 4a8a5a1180a5a1166a1ac72d28a679f794c3e80f Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sat, 27 Sep 2014 17:25:52 -0700 Subject: [PATCH] Shell-quoting some more things. --- nvm.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nvm.sh b/nvm.sh index b1a11b5..3e81cad 100644 --- a/nvm.sh +++ b/nvm.sh @@ -765,13 +765,13 @@ nvm() { shift local provided_version - provided_version=$1 + provided_version="$1" if [ -n "$provided_version" ]; then VERSION=`nvm_version $provided_version` if [ $VERSION = "N/A" ]; then provided_version='' nvm_rc_version - VERSION=`nvm_version $NVM_RC_VERSION` + VERSION="$(nvm_version "$NVM_RC_VERSION")" else shift fi