fix: hide unnecessary error on shasum (#1692)

This commit is contained in:
Tom Hu
2024-12-04 13:11:59 -03:00
committed by GitHub
parent 2ed5abcb9f
commit cda5e552ba

2
dist/codecov.sh vendored
View File

@@ -112,7 +112,7 @@ CC_PUBLIC_PGP_KEY=$(curl -s https://keybase.io/codecovsecurity/pgp_keys.asc)
then then
exit_if_error "Could not verify signature. Please contact Codecov if problem continues" exit_if_error "Could not verify signature. Please contact Codecov if problem continues"
fi 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"); sha256sum -c "${cc_filename}.SHA256SUM");
then then
exit_if_error "Could not verify SHASUM. Please contact Codecov if problem continues" exit_if_error "Could not verify SHASUM. Please contact Codecov if problem continues"