Skip to content

Commit

Permalink
try to fix OSX CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Antonin Reitz committed Jun 21, 2024
1 parent c2137aa commit 2882196
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions build-bench-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,11 @@ if [ "$EUID" -eq 0 ]; then
SUDO=""
fi

SHA256SUM_CMD="sha256sum"
if test "$darwin" = "1"; then
SHA256SUM_CMD="shasum -a 256"
fi

curdir=`pwd`
rebuild=0
all=0
Expand Down Expand Up @@ -349,12 +354,12 @@ function checkout { # name, git-tag, git repo, options
}

function check_checksum { # name, sha256sum
if (echo $2 $1 | sha256sum --check --status); then
if (echo $2 $1 | $SHA256SUM_CMD --check --status); then
echo "$1 has correct checksum"
else
echo "$1 has wrong checksum"
echo "$2 was expected"
sha256sum $1
$SHA256SUM_CMD $1
fi
}

Expand Down

0 comments on commit 2882196

Please sign in to comment.