mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 22:31:51 +00:00
fixed nvm_ls_remote using raw grep
This commit is contained in:
parent
bc508802e5
commit
772cb6fa80
4
nvm.sh
4
nvm.sh
@ -83,8 +83,8 @@ nvm_ls_remote()
|
||||
PATTERN=".*"
|
||||
fi
|
||||
VERSIONS=`curl -s http://nodejs.org/dist/ \
|
||||
| egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \
|
||||
| grep -w "${PATTERN}" \
|
||||
| command egrep -o 'v[0-9]+\.[0-9]+\.[0-9]+' \
|
||||
| command grep -w "${PATTERN}" \
|
||||
| sort -t. -u -k 1.2,1n -k 2,2n -k 3,3n`
|
||||
if [ ! "$VERSIONS" ]; then
|
||||
echo "N/A"
|
||||
|
Loading…
Reference in New Issue
Block a user