Skip to content

Commit 0e25330

Browse files
committed
fix build on macOS 15.4
1 parent 7784652 commit 0e25330

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,8 +254,9 @@ if [ ! -f "${SCRIPT_DIR}/../openssl-${OPENSSL_VERSION}.tar.gz" ]; then
254254
curl -fL "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" -o "${SCRIPT_DIR}/../openssl-${OPENSSL_VERSION}.tar.gz"
255255
curl -fL "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz.sha256" -o "${SCRIPT_DIR}/../openssl-${OPENSSL_VERSION}.tar.gz.sha256"
256256
DIGEST=$( cat ${SCRIPT_DIR}/../openssl-${OPENSSL_VERSION}.tar.gz.sha256 )
257+
DIGEST=$(echo "$DIGEST" | awk '{$1=$1};1')
257258

258-
if [[ "$(shasum -a 256 "openssl-${OPENSSL_VERSION}.tar.gz" | awk '{print \" $1\"}')" != "${DIGEST}" ]]
259+
if [[ "$(shasum -a 256 "openssl-${OPENSSL_VERSION}.tar.gz" | awk '{print $1}')" != "${DIGEST}" ]]
259260
then
260261
echo "openssl-${OPENSSL_VERSION}.tar.gz: checksum mismatch"
261262
exit 1

0 commit comments

Comments
 (0)