Browse Source

Made string comparison also compatible for zsh

master
Koen Punt 13 years ago
parent
commit
4a6c696074
  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