Permalink
Browse files

Made string comparison also compatible for zsh

  • Loading branch information...
1 parent 5a17b81 commit 4a6c696074d89b63ce60c0c68e16712870427785 @koenpunt koenpunt committed Oct 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 nvm.sh
View
2 nvm.sh
@@ -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

0 comments on commit 4a6c696

Please sign in to comment.