Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d9afffa

Browse filesBrowse 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 <marcoippolito54@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Mestery <mestery@protonmail.com> Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com> Reviewed-By: Darshan Sen <raisinten@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 1a5cddf commit d9afffa
Copy full SHA for d9afffa

File tree

Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-2
lines changed
Open diff view settings
Collapse file

‎tools/dep_updaters/utils.sh‎

Copy file name to clipboardExpand all lines: tools/dep_updaters/utils.sh
+2-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.