Build: fix repeatable-build typo
authorAndreas Metzler <ametzler@bebt.de>
Sat, 28 Oct 2017 13:23:50 +0000 (14:23 +0100)
committerJeremy Harris <jgh146exb@wizmail.org>
Sat, 28 Oct 2017 13:25:26 +0000 (14:25 +0100)
src/scripts/reversion

index 5e0ed855484817f2b07ead7bd7503586374ad29c..c82d9c0ace63075bb1127509908d282e4c004f76 100755 (executable)
@@ -96,7 +96,7 @@ if [ ".${SOURCE_DATE_EPOCH:-}" != "." ]; then
   # builds without it causing any problems: nothing really cares about timezone.
   # GNU date: "date -d @TS"
   # BSD date: "date -r TS"
   # builds without it causing any problems: nothing really cares about timezone.
   # GNU date: "date -d @TS"
   # BSD date: "date -r TS"
-  exim_build_date_override="$(date -u -d "@${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null | date -u -r "${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null)"
+  exim_build_date_override="$(date -u -d "@${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null || date -u -r "${SOURCE_DATE_EPOCH}" "$fmt" 2>/dev/null)"
 fi
 
 ( echo '# automatically generated file - see ../scripts/reversion'
 fi
 
 ( echo '# automatically generated file - see ../scripts/reversion'