Skip to content

Commit 6c2bf69

Browse files
committed
rename min_ver to min for consistency
1 parent 22dc48f commit 6c2bf69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nvm.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -1837,7 +1837,7 @@ nvm_print_versions() {
18371837
fi
18381838

18391839
command awk \
1840-
-v remote_versions="$(printf '%s' "${1-}" | tr '\n' '|')" -v min_ver="${NVM_MIN:-v0}" \
1840+
-v remote_versions="$(printf '%s' "${1-}" | tr '\n' '|')" -v min="${NVM_MIN:-v0}" \
18411841
-v installed_versions="$(nvm_ls | tr '\n' '|')" -v current="$NVM_CURRENT" \
18421842
-v installed_color="$INSTALLED_COLOR" -v system_color="$SYSTEM_COLOR" \
18431843
-v current_color="$CURRENT_COLOR" -v default_color="$DEFAULT_COLOR" \
@@ -1860,7 +1860,7 @@ BEGIN {
18601860
split(remote_versions, lines, "|");
18611861
split(installed_versions, installed, "|");
18621862
rows = alen(lines);
1863-
filter_on = (vcmp("v0.0.0", min_ver) != 0);
1863+
filter_on = (vcmp("v0.0.0", min) != 0);
18641864
current_major = -1;
18651865
for (m = n = 1; n <= rows; n++) {
18661866
split(lines[n], fields, "[[:blank:]]+");
@@ -1877,7 +1877,7 @@ BEGIN {
18771877
if (filter_on != 0) {
18781878
if (is_installed != 0) {
18791879
current_major = v2m(version);
1880-
} else if (vcmp(version, min_ver) >= 0) {
1880+
} else if (vcmp(version, min) >= 0) {
18811881
filter_on = 0;
18821882
} else if (v2m(version) != current_major) {
18831883
continue;

0 commit comments

Comments
 (0)