Skip to content

Commit 1db199c

Browse files
authored
Merge pull request #2502 from rbenv/sha2-openssl
compute_sha2: drop support for OS X Leopard
2 parents fdcfac8 + eabf640 commit 1db199c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

bin/ruby-build

+1-3
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,7 @@ compute_sha2() {
313313
output="$(shasum -a 256 -b)" || return 1
314314
echo "${output% *}"
315315
elif type openssl &>/dev/null; then
316-
local openssl
317-
openssl="$(command -v "$(brew --prefix openssl 2>/dev/null || true)"/bin/openssl openssl | head -1)"
318-
output="$("$openssl" dgst -sha256 2>/dev/null)" || return 1
316+
output="$(openssl dgst -sha256 2>/dev/null)" || return 1
319317
echo "${output##* }"
320318
elif type sha256sum &>/dev/null; then
321319
output="$(sha256sum -b)" || return 1

0 commit comments

Comments
 (0)