X-Git-Url: https://git.exim.org/users/jgh/exim.git/blobdiff_plain/6e411084a29a7658f7bc88aa5a62ab9016c22c79..ec62d0a959f5b329009c68a008fbd8594b93c511:/src/scripts/reversion?ds=sidebyside diff --git a/src/scripts/reversion b/src/scripts/reversion index 45755c084..c82d9c0ac 100755 --- a/src/scripts/reversion +++ b/src/scripts/reversion @@ -1,5 +1,5 @@ #!/bin/sh -# Copyright (c) The Exim Maintainers 2016 +# Copyright (c) The Exim Maintainers 2017 set -e LC_ALL=C @@ -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" - 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'