:: commit 52f948b56842b9f0b0b26e8a2d2c53206e5c5672

mintsuki <mintsuki@protonmail.com> — 2024-05-01 21:37

parents: cbb398aea5

build: Fix issue with commit timestamps in bootstrap script

diff --git a/bootstrap b/bootstrap
index ac8fc97e..7fb16107 100755
--- a/bootstrap
+++ b/bootstrap
@@ -71,7 +71,7 @@ if git log -1 >/dev/null 2>&1; then
     cat >timestamps <<EOF
 REGEN_DATE="$(git log -1 --pretty=%cd --date='format:%B %Y')"
 SOURCE_DATE_EPOCH="$(git log -1 --pretty=%ct)"
-SOURCE_DATE_EPOCH_TOUCH="$(git log -1 --pretty=%cI | sed 's/-//g;s/T//g;s/://g;s/[0-9][0-9]+.*//g')"
+SOURCE_DATE_EPOCH_TOUCH="$(git log -1 --pretty=%cI | head -c 16 | sed 's/-//g;s/T//g;s/://g')"
 EOF
 fi
 
tab: 248 wrap: offon