ci/build.sh: Use a more portable command for getting the date to make it work on macOS too

This commit is contained in:
Kamil Śliwak 2021-01-14 18:42:48 +01:00
parent f9bfceccd1
commit 6c3ccc8e29

View File

@ -12,8 +12,7 @@ else
# Use last commit date rather than build date to avoid ending up with builds for
# different platforms having different version strings (and therefore producing different bytecode)
# if the CI is triggered just before midnight.
last_commit_timestamp=$(git log -1 --date=iso --format=%ad HEAD)
date -d "$last_commit_timestamp" -u "+ci.%Y.%-m.%-d" >prerelease.txt
TZ=UTC git show --quiet --date="format-local:%Y.%-m.%-d" --format="ci.%cd" >prerelease.txt
fi
if [ -n "$CIRCLE_SHA1" ]