mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-12 07:01:50 +00:00
default $PATTERN to "v" correctly
This commit is contained in:
parent
f691cea416
commit
480f580866
2
nvm.sh
2
nvm.sh
@ -117,7 +117,7 @@ nvm_binary_available() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
nvm_ls() {
|
nvm_ls() {
|
||||||
local PATTERN=`expr "$1" : "v"`
|
local PATTERN=${1:-v}
|
||||||
local VERSIONS=''
|
local VERSIONS=''
|
||||||
if [ "$PATTERN" = 'current' ]; then
|
if [ "$PATTERN" = 'current' ]; then
|
||||||
echo `node -v 2>/dev/null`
|
echo `node -v 2>/dev/null`
|
||||||
|
Loading…
Reference in New Issue
Block a user