Skip to content

Commit

Permalink
fix: hide stderr from shasum as its unnecessary
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Nov 21, 2024
1 parent 43d9f95 commit c19bf59
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ else
exit_if_error "Could not verify signature. Please contact Codecov if problem continues"
fi

if ! (shasum -a 256 -c "${codecov_filename}.SHA256SUM" || \
if ! (shasum -a 256 -c "${codecov_filename}.SHA256SUM" 2>/dev/null || \
sha256sum -c "${codecov_filename}.SHA256SUM");
then
exit_if_error "Could not verify SHASUM. Please contact Codecov if problem continues"
Expand Down

0 comments on commit c19bf59

Please sign in to comment.