Skip to content

Commit c13e155

Browse files
committed
rename min_ver to min for consistency
1 parent 90de98b commit c13e155

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nvm.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,7 @@ nvm_print_versions() {
18571857
fi
18581858

18591859
command awk \
1860-
-v remote_versions="$(printf '%s' "${1-}" | tr '\n' '|')" -v min_ver="${NVM_MIN:-v0}" \
1860+
-v remote_versions="$(printf '%s' "${1-}" | tr '\n' '|')" -v min="${NVM_MIN:-v0}" \
18611861
-v installed_versions="$(nvm_ls | tr '\n' '|')" -v current="$NVM_CURRENT" \
18621862
-v installed_color="$INSTALLED_COLOR" -v system_color="$SYSTEM_COLOR" \
18631863
-v current_color="$CURRENT_COLOR" -v default_color="$DEFAULT_COLOR" \
@@ -1880,7 +1880,7 @@ BEGIN {
18801880
split(remote_versions, lines, "|");
18811881
split(installed_versions, installed, "|");
18821882
rows = alen(lines);
1883-
filter_on = (vcmp("v0.0.0", min_ver) != 0);
1883+
filter_on = (vcmp("v0.0.0", min) != 0);
18841884
current_major = -1;
18851885
for (m = n = 1; n <= rows; n++) {
18861886
split(lines[n], fields, "[[:blank:]]+");
@@ -1897,7 +1897,7 @@ BEGIN {
18971897
if (filter_on != 0) {
18981898
if (is_installed) {
18991899
current_major = v2m(version);
1900-
} else if (vcmp(version, min_ver) >= 0) {
1900+
} else if (vcmp(version, min) >= 0) {
19011901
filter_on = 0;
19021902
} else if (v2m(version) != current_major) {
19031903
continue;

0 commit comments

Comments
 (0)