Browse Source

Merge pull request #149 from koenpunt/zsh-compat

Made string comparison also compatible for zsh
master
Tim Caswell 13 years ago
parent
commit
d8713bb2e8
  1. 2
      nvm.sh

2
nvm.sh

@ -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

Loading…
Cancel
Save