Made string comparison also compatible for zsh

master
Koen Punt 2012-10-09 13:36:44 +02:00
parent 5a17b81a09
commit 4a6c696074
1 changed files with 1 additions and 1 deletions

2
nvm.sh
View File

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