void-packages/common/wrappers/date.sh

7 lines
119 B
Bash

#!/bin/sh
if [ "$SOURCE_DATE_EPOCH" ]; then
post="--utc --date @$SOURCE_DATE_EPOCH"
fi
exec /usr/bin/date "$@" $post