CI: handle FreeBSD version of date(1)
This commit is contained in:
parent
ac96d91a65
commit
bf0515d188
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user