From 8827d6d14a8d9cd7ab6eac29ac1d5a35ea3ba413 Mon Sep 17 00:00:00 2001 From: Thomas Levine Date: Wed, 10 Oct 2012 21:24:57 -0400 Subject: [PATCH] switch unsetopt to the thing creationix has --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index 544c176..2bed1f5 100755 --- a/nvm.sh +++ b/nvm.sh @@ -12,7 +12,7 @@ fi # Make zsh glob matching behave same as bash # This fixes the "zsh: no matches found" errors -if [[ `which unsetopt 2>/dev/null` ]]; then +if [ ! -z "$(which unsetopt 2>/dev/null)" ]; then unsetopt nomatch 2>/dev/null fi