From 6db4d2ed37223f1477b72fae383af36ab514c280 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 28 Jan 2020 15:21:17 +0100 Subject: [PATCH] CI: more BSD-compatibility, and remove typo --- ci/txcheck.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ci/txcheck.sh b/ci/txcheck.sh index 95e67391d..a2130c9d5 100644 --- a/ci/txcheck.sh +++ b/ci/txcheck.sh @@ -47,6 +47,12 @@ else last_week() { date -v1w +%s; } fi +# Distinguish GNU SHA executables from BSD ones +if which sha256sum > /dev/null 2>&1 ; then + SHA256=sha256sum +else + SHA256=sha256 +fi ### CHECK WORKING DIRECTORY # @@ -89,14 +95,13 @@ tx_sum() sed -i'' -e '/