Skip to content

Commit

Permalink
Apply code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Oct 13, 2023
1 parent 5c8a61c commit c075882
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions tools/circle-upload-codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

set -eo pipefail

PLATFORM=`uname -m`
PLATFORM=$(uname -m)
[ $PLATFORM == "x86_64" ] && PLATFORM=linux
BASE_URL="https://uploader.codecov.io/latest/$PLATFORM"

# Source: https://docs.codecov.com/docs/codecov-uploader#integrity-checking-the-uploader
curl https://keybase.io/codecovsecurity/pgp_keys.asc | gpg --no-default-keyring --keyring trustedkeys.gpg --import
curl -Os "$BASE_URL/codecov"
curl -Os "$BASE_URL/codecov.SHA256SUM"
curl -Os "$BASE_URL/codecov.SHA256SUM.sig"
curl -Os "${BASE_URL}/codecov"
curl -Os "${BASE_URL}/codecov.SHA256SUM"
curl -Os "${BASE_URL}/codecov.SHA256SUM.sig"
gpgv codecov.SHA256SUM.sig codecov.SHA256SUM
shasum -a 256 -c codecov.SHA256SUM

Expand Down
2 changes: 1 addition & 1 deletion tools/circleci-upload-to-s3.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ls $CT_REPORTS
if which aws ; then
echo "aws tool ready"
else
curl "https://awscli.amazonaws.com/awscli-exe-linux-`uname -m`.zip" -o "awscliv2.zip"
curl "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o "awscliv2.zip"
unzip -q awscliv2.zip
sudo ./aws/install
fi
Expand Down

0 comments on commit c075882

Please sign in to comment.