Skip to content
Browse files

Merge pull request #133 from mimetnet/master

Fix warning when unsetopt isn't found
  • Loading branch information...
2 parents cd14416 + d68c389 commit 04652a50901cc22d7b7f8784583755432d40e5a4 @creationix committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 nvm.sh
View
2 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

0 comments on commit 04652a5

Please sign in to comment.
Something went wrong with that request. Please try again.