From cda5e552ba8a6a2081dd405d9658606eec5b869b Mon Sep 17 00:00:00 2001 From: Tom Hu <88201630+thomasrockhu-codecov@users.noreply.github.com> Date: Wed, 4 Dec 2024 13:11:59 -0300 Subject: [PATCH] fix: hide unnecessary error on shasum (#1692) --- dist/codecov.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/codecov.sh b/dist/codecov.sh index d4664a8b9..d4e884510 100755 --- a/dist/codecov.sh +++ b/dist/codecov.sh @@ -112,7 +112,7 @@ CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc) then exit_if_error "Could not verify signature. Please contact Codecov if problem continues" fi - if ! (shasum -a 256 -c "${cc_filename}.SHA256SUM" || \ + if ! (shasum -a 256 -c "${cc_filename}.SHA256SUM" 2>/dev/null || \ sha256sum -c "${cc_filename}.SHA256SUM"); then exit_if_error "Could not verify SHASUM. Please contact Codecov if problem continues"