mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
ci/build.sh: Use a more portable command for getting the date to make it work on macOS too
This commit is contained in:
parent
f9bfceccd1
commit
6c3ccc8e29
@ -12,8 +12,7 @@ else
|
|||||||
# Use last commit date rather than build date to avoid ending up with builds for
|
# 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)
|
# different platforms having different version strings (and therefore producing different bytecode)
|
||||||
# if the CI is triggered just before midnight.
|
# if the CI is triggered just before midnight.
|
||||||
last_commit_timestamp=$(git log -1 --date=iso --format=%ad HEAD)
|
TZ=UTC git show --quiet --date="format-local:%Y.%-m.%-d" --format="ci.%cd" >prerelease.txt
|
||||||
date -d "$last_commit_timestamp" -u "+ci.%Y.%-m.%-d" >prerelease.txt
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -n "$CIRCLE_SHA1" ]
|
if [ -n "$CIRCLE_SHA1" ]
|
||||||
|
Loading…
Reference in New Issue
Block a user