Skip to content

Commit d9afffa

Browse files
lpincaMoLow
authored andcommitted
tools: use shasum instead of sha256sum
By default, there is no sha256sum command in macOS. PR-URL: #48229 Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Yagiz Nizipli <[email protected]> Reviewed-By: Mestery <[email protected]> Reviewed-By: Yongsheng Zhang <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Rafael Gonzaga <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 1a5cddf commit d9afffa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/dep_updaters/utils.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ log_and_verify_sha256sum() {
1313
package_name="$1"
1414
archive="$2"
1515
checksum="$3"
16-
bsd_formatted_checksum=$(sha256sum --tag "$archive")
16+
bsd_formatted_checksum=$(shasum -a 256 --tag "$archive")
1717
if [ -z "$3" ]; then
1818
echo "$bsd_formatted_checksum"
1919
else
20-
archive_checksum=$(sha256sum "$archive")
20+
archive_checksum=$(shasum -a 256 "$archive")
2121
if [ "$checksum" = "$archive_checksum" ]; then
2222
echo "Valid $package_name checksum"
2323
echo "$bsd_formatted_checksum"

0 commit comments

Comments
 (0)