Skip to content

Commit

Permalink
rename min_ver to min for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
ryenus committed Jul 30, 2024
1 parent 22dc48f commit 6c2bf69
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1837,7 +1837,7 @@ nvm_print_versions() {
fi

command awk \
-v remote_versions="$(printf '%s' "${1-}" | tr '\n' '|')" -v min_ver="${NVM_MIN:-v0}" \
-v remote_versions="$(printf '%s' "${1-}" | tr '\n' '|')" -v min="${NVM_MIN:-v0}" \
-v installed_versions="$(nvm_ls | tr '\n' '|')" -v current="$NVM_CURRENT" \
-v installed_color="$INSTALLED_COLOR" -v system_color="$SYSTEM_COLOR" \
-v current_color="$CURRENT_COLOR" -v default_color="$DEFAULT_COLOR" \
Expand All @@ -1860,7 +1860,7 @@ BEGIN {
split(remote_versions, lines, "|");
split(installed_versions, installed, "|");
rows = alen(lines);
filter_on = (vcmp("v0.0.0", min_ver) != 0);
filter_on = (vcmp("v0.0.0", min) != 0);
current_major = -1;
for (m = n = 1; n <= rows; n++) {
split(lines[n], fields, "[[:blank:]]+");
Expand All @@ -1877,7 +1877,7 @@ BEGIN {
if (filter_on != 0) {
if (is_installed != 0) {
current_major = v2m(version);
} else if (vcmp(version, min_ver) >= 0) {
} else if (vcmp(version, min) >= 0) {
filter_on = 0;
} else if (v2m(version) != current_major) {
continue;
Expand Down

0 comments on commit 6c2bf69

Please sign in to comment.