Skip to content

Commit 85f76f4

Browse files
committed
Fix Darwin sha256 sum
1 parent 6f2da9b commit 85f76f4

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

script/build.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,5 +69,14 @@ GO111MODULE=on go get github.com/balibuild/bali/cmd/bali
6969
echo -e "build TunnelSSH \\x1b[32m${TOPLEVEL}\\x1b[0m"
7070
cd "$TOPLEVEL"
7171
bali -z
72-
sha256sum *.tar.gz
72+
73+
SHACMD='sha256sum'
74+
75+
case "$(uname -s)" in
76+
*Darwin*)
77+
SHACMD='shasum -a 256'
78+
esac
79+
80+
81+
$SHACMD *.tar.gz
7382
echo -e "\\x1b[32mbuild TunnelSSH success\\x1b[0m"

0 commit comments

Comments
 (0)