Skip to content

Commit

Permalink
Merge pull request #2502 from rbenv/sha2-openssl
Browse files Browse the repository at this point in the history
compute_sha2: drop support for OS X Leopard
  • Loading branch information
mislav authored Jan 22, 2025
2 parents fdcfac8 + eabf640 commit 1db199c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions bin/ruby-build
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,7 @@ compute_sha2() {
output="$(shasum -a 256 -b)" || return 1
echo "${output% *}"
elif type openssl &>/dev/null; then
local openssl
openssl="$(command -v "$(brew --prefix openssl 2>/dev/null || true)"/bin/openssl openssl | head -1)"
output="$("$openssl" dgst -sha256 2>/dev/null)" || return 1
output="$(openssl dgst -sha256 2>/dev/null)" || return 1
echo "${output##* }"
elif type sha256sum &>/dev/null; then
output="$(sha256sum -b)" || return 1
Expand Down

0 comments on commit 1db199c

Please sign in to comment.