From bf0515d1889a512fa007f69c2894fa74f2ea7445 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Tue, 28 Jan 2020 14:52:34 +0100 Subject: [PATCH] CI: handle FreeBSD version of date(1) --- ci/txcheck.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ci/txcheck.sh b/ci/txcheck.sh index 2785c510f..63a3ea45f 100644 --- a/ci/txcheck.sh +++ b/ci/txcheck.sh @@ -59,7 +59,7 @@ else fi # No unsaved changes; enforce a string freeze of one week DATE_PREV=$( git log -1 translation --date=unix | sed -e '/^Date:/s+.*:++p' -e d ) -DATE_HEAD=$( date +%s -d "1 week ago" ) +DATE_HEAD=$( date +%s -d "1 week ago" || date -v1w +%s ) test "$DATE_PREV" -le "$DATE_HEAD" || { echo "! Translation tag has not aged enough." ; git log -1 translation ; exit 1 ; } # Tag is good, do real work of checking strings: collect names of relevant files