From 26ed7a003aacd0efb03a879349d60261ff4a03c7 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Tue, 15 Jul 2014 02:00:48 -0700 Subject: [PATCH] Making sure to quote this output, so that paths with spaces don't break the method. Although tests were passing in Travis for #470, they were failing locally - now they pass in both. --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 52c3751..4763aef 100644 --- a/nvm.sh +++ b/nvm.sh @@ -29,7 +29,7 @@ nvm_download() { } nvm_has_system_node() { - [ $(nvm deactivate 2> /dev/null && command -v node) != '' ] + [ "$(nvm deactivate 2> /dev/null && command -v node)" != '' ] } # Make zsh glob matching behave same as bash