Skip to content
Myr

[Fix] `ls-remote`: fix issues in zsh when using a mirror with a ton of entries

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Fixes #1813

authored by adedomin · committed by Jordan Harband · parent f5f029c · Browse files · 1 file+5 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−3 removed

  • other:+5 added−3 removed

1 file+5 added−3 removed

modified:nvm.sh+5 added-3 removed
1216 unmodified lines
1217 LTS_VERSION="${LTS_ALIAS_LINE#* }"1218 nvm_make_alias "$LTS_ALIAS" "$LTS_VERSION" >/dev/null 2>&11219 done12201221 VERSIONS="$(nvm_echo "${VERSION_LIST}" \1222 | command awk -v pattern="${PATTERN-}" -v lts="${LTS-}" '{1221 VERSIONS="$({ command awk -v pattern="${PATTERN-}" -v lts="${LTS-}" '{1222 if (!$1) { next }1223 if (pattern && tolower($1) !~ tolower(pattern)) { next }1224 if (lts == "*" && $10 ~ /^\-?$/) { next }1225 if (lts && lts != "*" && tolower($10) !~ tolower(lts)) { next }1226 if ($10 !~ /^\-?$/) print $1, $10; else print $11227 }' \1228 | nvm_grep -w "${PATTERN:-.*}" \1230 | $SORT_COMMAND)"1229 | $SORT_COMMAND; } << EOF1230$VERSION_LIST1231EOF1232)"1233 if [ "$ZSH_HAS_SHWORDSPLIT_UNSET" -eq 1 ] && nvm_has "unsetopt"; then1234 unsetopt shwordsplit1235 fi1236 if [ -z "${VERSIONS}" ]; then
2414 unmodified lines