Skip to content

Commit

Permalink
show a warning about skipped versions if any
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ryenus committed Nov 6, 2024
1 parent cd30a37 commit d655614
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1925,6 +1925,11 @@ BEGIN {
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++) {
print output[n]
}
Expand Down

0 comments on commit d655614

Please sign in to comment.