scripts: use shasum instead of sha256sum

Because the sha256sum binary isn't available on MacOS we instead use the
shasum -a 256 command that was used before.
This commit is contained in:
Oliver Gugger committed 2021-02-15 10:26:15 +01:00
1 parent 4a96c2e55a
commit 644424296b
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -63,8 +63,8 @@ check_command gpg
LND_VERSION=$($LND_BIN --version | cut -d'=' -f2)
LNCLI_VERSION=$($LNCLI_BIN --version | cut -d'=' -f2)
LND_SUM=$(sha256sum $LND_BIN | cut -d' ' -f1)
LNCLI_SUM=$(sha256sum $LNCLI_BIN | cut -d' ' -f1)
LND_SUM=$(shasum -a 256 $LND_BIN | cut -d' ' -f1)
LNCLI_SUM=$(shasum -a 256 $LNCLI_BIN | cut -d' ' -f1)
echo "Detected lnd $LND_BIN version $LND_VERSION with SHA256 sum $LND_SUM"
echo "Detected lncli $LNCLI_BIN version $LNCLI_VERSION with SHA256 sum $LNCLI_SUM"