mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-18 19:43:43 +00:00
show a warning about skipped versions if any
due the use of --min or NVM_MIN, which would show only the versions higher than the specified min version, and/or the available minor/patch updates for the installed versions.
This commit is contained in:
parent
cd30a37384
commit
d655614c69
5
nvm.sh
5
nvm.sh
@ -1925,6 +1925,11 @@ BEGIN {
|
|||||||
output[m++] = formatted;
|
output[m++] = formatted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
skipped = rows - m + 1
|
||||||
|
if (skipped > 0) {
|
||||||
|
printf("[WARN] %d version(s) skipped.\n", skipped) > "/dev/stderr"
|
||||||
|
}
|
||||||
|
|
||||||
for (n = 1; n < m; n++) {
|
for (n = 1; n < m; n++) {
|
||||||
print output[n]
|
print output[n]
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user