Skip to content

Commit fe6fc5b

Browse files
committed
rename min_ver to min for consistency
1 parent 8ef76ac commit fe6fc5b

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
@@ -1883,7 +1883,7 @@ nvm_print_versions() {
18831883
fi
18841884

18851885
command awk \
1886-
-v remote_versions="$(printf '%s' "${1-}" | tr '\n' '|')" -v min_ver="${NVM_MIN:-v0}" \
1886+
-v remote_versions="$(printf '%s' "${1-}" | tr '\n' '|')" -v min="${NVM_MIN:-v0}" \
18871887
-v installed_versions="$(nvm_ls | tr '\n' '|')" -v current="$NVM_CURRENT" \
18881888
-v installed_color="$INSTALLED_COLOR" -v system_color="$SYSTEM_COLOR" \
18891889
-v current_color="$CURRENT_COLOR" -v default_color="$DEFAULT_COLOR" \
@@ -1906,7 +1906,7 @@ BEGIN {
19061906
split(remote_versions, lines, "|");
19071907
split(installed_versions, installed, "|");
19081908
rows = alen(lines);
1909-
filter_on = (vcmp("v0.0.0", min_ver) != 0);
1909+
filter_on = (vcmp("v0.0.0", min) != 0);
19101910
current_major = -1;
19111911
for (m = n = 1; n <= rows; n++) {
19121912
split(lines[n], fields, "[[:blank:]]+");
@@ -1923,7 +1923,7 @@ BEGIN {
19231923
if (filter_on != 0) {
19241924
if (is_installed) {
19251925
current_major = v2m(version);
1926-
} else if (vcmp(version, min_ver) >= 0) {
1926+
} else if (vcmp(version, min) >= 0) {
19271927
filter_on = 0;
19281928
} else if (v2m(version) != current_major) {
19291929
continue;

0 commit comments

Comments
 (0)