mirror of
https://github.com/rbenv/ruby-build.git
synced 2026-01-07 15:31:23 +01:00
--quiet option isn't sensible sha256sum(1) of GNU coreutils (yyuu/pyenv#840)
The option is available only if verifying digest, not available when computing digest. > --quiet > don't print OK for each successfully verified file
This commit is contained in:
parent
9c1ea6ffcd
commit
4b9f7eefd8
1 changed files with 1 additions and 1 deletions
|
|
@ -224,7 +224,7 @@ compute_sha2() {
|
|||
output="$("$openssl" dgst -sha256 2>/dev/null)" || return 1
|
||||
echo "${output##* }"
|
||||
elif type sha256sum &>/dev/null; then
|
||||
output="$(sha256sum --quiet)" || return 1
|
||||
output="$(sha256sum -b)" || return 1
|
||||
echo "${output%% *}"
|
||||
else
|
||||
return 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue