Skip to content

Commit d655614

Browse files
committed
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.
1 parent cd30a37 commit d655614

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

nvm.sh

+5
Original file line numberDiff line numberDiff line change
@@ -1925,6 +1925,11 @@ BEGIN {
19251925
output[m++] = formatted;
19261926
}
19271927
1928+
skipped = rows - m + 1
1929+
if (skipped > 0) {
1930+
printf("[WARN] %d version(s) skipped.\n", skipped) > "/dev/stderr"
1931+
}
1932+
19281933
for (n = 1; n < m; n++) {
19291934
print output[n]
19301935
}

0 commit comments

Comments
 (0)