From d68c38902a491943841694cf5cce82dad0053f19 Mon Sep 17 00:00:00 2001 From: Matthew Metnetsky Date: Wed, 22 Aug 2012 14:19:18 -0400 Subject: [PATCH] Fix warning when unsetopt isn't found --- nvm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvm.sh b/nvm.sh index dd0de77..f88486e 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 [ ! -z "$(which unsetopt)" ]; then +if [ ! -z "$(which unsetopt 2>/dev/null)" ]; then unsetopt nomatch 2>/dev/null fi