Fix parse error in Zsh 4.3.17

master
rummik 2012-08-20 18:02:38 -03:00
parent 5132a1eb6f
commit ad5242ea0b
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -12,7 +12,7 @@ fi
# Make zsh glob matching behave same as bash
# This fixes the "zsh: no matches found" errors
if [[ `which unsetopt` ]]; then
if [ ! -z "$(which unsetopt)" ]; then
unsetopt nomatch 2>/dev/null
fi