Added check for unsetopt

unsetopt doesn't exist on OSX by default which causes `. nvm.sh` to
fail at that line.
This commit is contained in:
Aravind Ramanathan 2012-08-07 23:22:27 -07:00
parent e475d7e7ab
commit 3bb2634d2f

4
nvm.sh
View File

@ -12,7 +12,9 @@ fi
# Make zsh glob matching behave same as bash # Make zsh glob matching behave same as bash
# This fixes the "zsh: no matches found" errors # 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 # Expand a version using the version cache
nvm_version() nvm_version()