Commit 4b9f7eef authored by Yamashita, Yuu's avatar Yamashita, Yuu
Browse files

`--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
parent 9c1ea6ff
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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