Skip to content

Commit

Permalink
chore(release): encapsulate shasum calls
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasrockhu-codecov committed Oct 3, 2024
1 parent 99fc7a6 commit 7ef191d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions dist/codecov.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

CODECOV_WRAPPER_VERSION="0.0.8"
CODECOV_WRAPPER_VERSION="0.0.9"


say() {
Expand Down Expand Up @@ -136,8 +136,8 @@ then
exit_if_error "Could not verify signature. Please contact Codecov if problem continues"
fi

if ! shasum -a 256 -c "${codecov_filename}.SHA256SUM" && \
! sha256sum -c "${codecov_filename}.SHA256SUM";
if ! (shasum -a 256 -c "${codecov_filename}.SHA256SUM" || \
sha256sum -c "${codecov_filename}.SHA256SUM");
then
exit_if_error "Could not verify SHASUM. Please contact Codecov if problem continues"
fi
Expand Down
4 changes: 2 additions & 2 deletions scripts/validate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ then
exit_if_error "Could not verify signature. Please contact Codecov if problem continues"
fi

if ! shasum -a 256 -c "${codecov_filename}.SHA256SUM" && \
! sha256sum -c "${codecov_filename}.SHA256SUM";
if ! (shasum -a 256 -c "${codecov_filename}.SHA256SUM" || \
sha256sum -c "${codecov_filename}.SHA256SUM");
then
exit_if_error "Could not verify SHASUM. Please contact Codecov if problem continues"
fi
Expand Down
2 changes: 1 addition & 1 deletion scripts/version.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
CODECOV_WRAPPER_VERSION="0.0.8"
CODECOV_WRAPPER_VERSION="0.0.9"

0 comments on commit 7ef191d

Please sign in to comment.