We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents fdcfac8 + eabf640 commit 1db199cCopy full SHA for 1db199c
bin/ruby-build
@@ -313,9 +313,7 @@ compute_sha2() {
313
output="$(shasum -a 256 -b)" || return 1
314
echo "${output% *}"
315
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
+ output="$(openssl dgst -sha256 2>/dev/null)" || return 1
319
echo "${output##* }"
320
elif type sha256sum &>/dev/null; then
321
output="$(sha256sum -b)" || return 1
0 commit comments