mirror of
https://github.com/rbenv/ruby-build.git
synced 2025-01-01 06:35:50 +01:00
Merge pull request #2461 from rbenv/openssl-version-check
Avoid array subscript error when checking OpenSSL versions
This commit is contained in:
commit
1ab17dad3d
1 changed files with 1 additions and 1 deletions
|
@ -1154,7 +1154,7 @@ needs_openssl() {
|
||||||
# shellcheck disable=SC2207
|
# shellcheck disable=SC2207
|
||||||
versions=( $(awk '{print $2}' <<<"$brew_installs" | sort_versions) )
|
versions=( $(awk '{print $2}' <<<"$brew_installs" | sort_versions) )
|
||||||
local index="${#versions[@]}"
|
local index="${#versions[@]}"
|
||||||
while [ $((index--)) -ge 0 ]; do
|
while [ $((--index)) -ge 0 ]; do
|
||||||
homebrew_version="$(normalize_semver "${versions[index]}")"
|
homebrew_version="$(normalize_semver "${versions[index]}")"
|
||||||
(( homebrew_version >= lower_bound && homebrew_version < upper_bound )) || continue
|
(( homebrew_version >= lower_bound && homebrew_version < upper_bound )) || continue
|
||||||
while read -r formula version prefix; do
|
while read -r formula version prefix; do
|
||||||
|
|
Loading…
Reference in a new issue