mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-11 22:51:51 +00:00
Merge pull request #148 from nathan-lafreniere/master
Fixes ls-remote with no parameters in linux
This commit is contained in:
commit
3766bff734
2
nvm.sh
2
nvm.sh
@ -91,6 +91,8 @@ nvm_ls_remote()
|
|||||||
if echo "${PATTERN}" | grep -v '^v' ; then
|
if echo "${PATTERN}" | grep -v '^v' ; then
|
||||||
PATTERN=v$PATTERN
|
PATTERN=v$PATTERN
|
||||||
fi
|
fi
|
||||||
|
else
|
||||||
|
PATTERN=".*"
|
||||||
fi
|
fi
|
||||||
VERSIONS=`curl -s http://nodejs.org/dist/ \
|
VERSIONS=`curl -s http://nodejs.org/dist/ \
|
||||||
| egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \
|
| egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \
|
||||||
|
Loading…
Reference in New Issue
Block a user