From 4b9f7eefd81dca18fcea0a77e571770770ded7c5 Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Thu, 23 Feb 2017 20:01:44 +0000 Subject: [PATCH] `--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 --- bin/ruby-build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/ruby-build b/bin/ruby-build index 733ab613..87d52caa 100755 --- a/bin/ruby-build +++ b/bin/ruby-build @@ -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