Welcome! Please see the About page for a little more info on how this works.

+4 votes
in Tools by

"OK" returned by sha256sum may be translated. Better rely on the exit status. Since -p pipefail is used, the pipe to grep could be simply omitted.

1 Answer

0 votes
by

Logged as https://clojure.atlassian.net/browse/TDEPS-280, definitely will fix!

ago by
hello, good morning

is there any news on this? I ran this error on my Fedora pt_BR

I fixed it by adding LC_ALL=C

echo "fe9194858e75d5af13c2e2aff92d710674d5bc5105f2b42f90a7d94d82ec023c  clojure-tools-1.12.6.1673.tar.gz" | LC_ALL=C sha256sum -c | grep "^clojure-tools-1.12.6.1673.tar.gz: OK$"

https://github.com/clojure/brew-install/blob/8eb992278a7ecc2dde46df3df1cb7adedb6d0085/src/main/resources/clojure/install/linux-install.sh#L30

the repo is closed, so I couldn't submit a patch. I'm sharing it in case someong else runs into the same problem.

in my case, there wasn't a clear error, and I had to read the source code to understand it.
ago by
As noted in the OP's comment, I suspect this line could just be simplified to:

echo "fe9194858e75d5af13c2e2aff92d710674d5bc5105f2b42f90a7d94d82ec023c  clojure-tools-1.12.6.1673.tar.gz" | sha256sum -c

And rely on the exit code of sha256sum
ago by
ah yes, I think that's actually better
thanks!
...