void-packages/common/wrappers/date.sh
Enno Boland 5a2a63645f common/wrappers: add date and uname wrappers.
uname:
  overwrites the hostname in command uname with the string 'void'.
date:
  uses the timestamp read from SOURCE_DATE_EPOCH as date.
2016-03-03 11:34:07 +01:00

6 lines
111 B
Bash

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