Trying to add a this Checksum check to my Shell script

289 views Asked by At

I have the following Codecov script (which works fine) but i'm trying to add a CHECKSUM check to the script line.

given the script:

bash <(curl https://codecov.io/bash) -s './CodeCoverageResults/' -f '*.xml' -Z -t <redacted>

I wish to now add the checksum check which they suggested in their docs:

curl https://codecov.io/bash | shasum -a 512 codecov
// Codecov provides SHA1, SHA256, and SHA512 hashes

So i'm not sure how to do this.

I tried:

bash <(curl https://codecov.io/bash | shasum -a 512 codecov) -s './CodeCover..... and that didn't work.

Any suggestions?

1

There are 1 answers

5
Thomas Hu On

Tom from Codecov here. This was an error in our docs and it should read

curl https://codecov.io/bash | shasum -a 512

Apologies for the inconvenience, and I've updated the docs.