diff options
Diffstat (limited to 'src/librefetch/librefetchdir/libmakepkg')
-rwxr-xr-x | src/librefetch/librefetchdir/libmakepkg/tidy/~source_date_epoch.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/librefetch/librefetchdir/libmakepkg/tidy/~source_date_epoch.sh b/src/librefetch/librefetchdir/libmakepkg/tidy/~source_date_epoch.sh index 562820b..fec7686 100755 --- a/src/librefetch/librefetchdir/libmakepkg/tidy/~source_date_epoch.sh +++ b/src/librefetch/librefetchdir/libmakepkg/tidy/~source_date_epoch.sh @@ -27,5 +27,9 @@ LIBMAKEPKG_TIDY_SOURCE_DATE_EPOCH_SH=1 tidy_modify+=('tidy_source_date_epoch') tidy_source_date_epoch() { - find . -exec touch --no-dereference --date="1990-01-01 0:0:0 +0" -- {} + + local date='1990-01-01 0:0:0 +0' + if [[ -n "$SOURCE_DATE_EPOCH" ]]; then + date="@$SOURCE_DATE_EPOCH" + fi + find . -exec touch --no-dereference --date="$date" -- {} + } |