Permalink
Browse files

Merge pull request #129 from indianburger/master

Add check for unsetopt issue #128
  • Loading branch information...
2 parents e475d7e + 3bb2634 commit 5132a1eb6ff5a34629d0be6de9ca23d7765b56c3 @creationix committed Aug 20, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 nvm.sh
View
4 nvm.sh
@@ -12,7 +12,9 @@ fi
# Make zsh glob matching behave same as bash
# This fixes the "zsh: no matches found" errors
-unsetopt nomatch 2>/dev/null
+if [[ `which unsetopt` ]]; then
+ unsetopt nomatch 2>/dev/null
+fi
# Expand a version using the version cache
nvm_version()

0 comments on commit 5132a1e

Please sign in to comment.