fix: hide unnecessary error on shasum

This commit is contained in:
Tom Hu 2024-11-20 22:20:24 -05:00
parent 015f24e681
commit 4e53c6f5e4
No known key found for this signature in database
GPG key ID: 79155678363963D2

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"