Skip to content
Permalink
Browse files Browse the repository at this point in the history
ts:scripts: Use SOURCE_DATE_EPOCH env if available
See https://reproducible-builds.org/docs/source-date-epoch/

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
  • Loading branch information
cryptomilk committed Jan 21, 2022
1 parent ec04e52 commit 90ed90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts/scripts/get-expire-time.ts
Expand Up @@ -8,7 +8,7 @@ import { writeFileSync } from 'fs';
import { DAY } from '../util/durations';

const unixTimestamp = parseInt(
execSync('git show -s --format=%ct').toString('utf8'),
process.env.SOURCE_DATE_EPOCH || execSync('git show -s --format=%ct').toString('utf8'),
10
);
const buildCreation = unixTimestamp * 1000;
Expand Down

0 comments on commit 90ed90d

Please sign in to comment.