Skip to content
Permalink
Browse files

Fix Mac build error for reproducible builds

  • Loading branch information
canihavesomecoffee committed Feb 15, 2020
1 parent 588c4a8 commit 60ddee11a1e385105fdeba2954dd5a6836c787ea
Showing with 4 additions and 1 deletion.
  1. +4 −1 mac/pre-build.sh
@@ -21,7 +21,10 @@ fi
if [ -z "$commit" ]; then
commit="Unknown"
fi
builddate=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d`
date_format="+%Y-%m-%d"
date_epoch="${SOURCE_DATE_EPOCH:-$(date +%s)}"
builddate=$(date -u -d "@$date_epoch" "$date_format" 2>/dev/null || date -u -r "$date_epoch" "$date_format" 2>/dev/null || date -u "$date_format")
#builddate=`date --utc --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y-%m-%d`
echo "Storing variables in file"
echo "Commit: $commit"
echo "Date: $builddate"

0 comments on commit 60ddee1

Please sign in to comment.
You can’t perform that action at this time.