[Fix] nvm uninstall: work around nomatch zsh option.

Fixes #1228.
This commit is contained in:
Jordan Harband
2016-10-04 01:43:24 -07:00
parent a29d0e49dc
commit f9e14b7d4d
2 changed files with 20 additions and 0 deletions

View File

@@ -20,6 +20,11 @@ nvm ls | grep "$NVM_TEST_VERSION" || die "Failed to install node"
# Switch to another version so we can uninstall
nvm use 0.12.7
# if zsh, set "nomatch" opt to reproduce failure from https://github.com/creationix/nvm/issues/1228
if nvm_has "setopt"; then
setopt nomatch
fi
# Uninstall it
nvm uninstall $NVM_TEST_VERSION