From 1416b75eaab70e48d7d968a815577fdd54bd5506 Mon Sep 17 00:00:00 2001 From: Luigi Pinca Date: Mon, 29 May 2023 21:15:08 +0200 Subject: [PATCH] tools: use shasum instead of sha256sum MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By default, there is no sha256sum command in macOS. PR-URL: https://github.com/nodejs/node/pull/48229 Reviewed-By: Marco Ippolito Reviewed-By: Yagiz Nizipli Reviewed-By: Mestery Reviewed-By: Yongsheng Zhang Reviewed-By: Tobias Nießen Reviewed-By: Rafael Gonzaga Reviewed-By: Darshan Sen Reviewed-By: James M Snell --- tools/dep_updaters/utils.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dep_updaters/utils.sh b/tools/dep_updaters/utils.sh index c32d7f5a2a0a49..63436781aec8a9 100644 --- a/tools/dep_updaters/utils.sh +++ b/tools/dep_updaters/utils.sh @@ -13,11 +13,11 @@ log_and_verify_sha256sum() { package_name="$1" archive="$2" checksum="$3" - bsd_formatted_checksum=$(sha256sum --tag "$archive") + bsd_formatted_checksum=$(shasum -a 256 --tag "$archive") if [ -z "$3" ]; then echo "$bsd_formatted_checksum" else - archive_checksum=$(sha256sum "$archive") + archive_checksum=$(shasum -a 256 "$archive") if [ "$checksum" = "$archive_checksum" ]; then echo "Valid $package_name checksum" echo "$bsd_formatted_checksum"