From d655614c69569444e2f280b9f25e20f29ae24223 Mon Sep 17 00:00:00 2001 From: ryenus Date: Mon, 21 Oct 2024 09:35:50 +0800 Subject: [PATCH] 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. --- nvm.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nvm.sh b/nvm.sh index 44df30fe94..1f3615a71a 100755 --- a/nvm.sh +++ b/nvm.sh @@ -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] }