Merge pull request #149 from koenpunt/zsh-compat

Made string comparison also compatible for zsh
master
Tim Caswell 2012-10-09 08:11:54 -07:00
commit d8713bb2e8
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

@ -75,7 +75,7 @@ nvm_ls_remote()
{ {
PATTERN=$1 PATTERN=$1
if [ "$PATTERN" ]; then if [ "$PATTERN" ]; then
if [ "${PATTERN:0:1}" != "v" ]; then if echo "${PATTERN}" | grep -v '^v' ; then
PATTERN=v$PATTERN PATTERN=v$PATTERN
fi fi
fi fi