SHA256
1
0
forked from pool/supermin
supermin/get_release_number.sh

8 lines
187 B
Bash
Raw Normal View History

#! /bin/sh
if test "$PWD" = "/" || test "$PWD" = "$HOME"
then
s=${BASH_SOURCE[0]}
cd "${s%/*}"
fi
exec env -i TZ=UTC /bin/date --reference="`/bin/ls -td * | head -n 1`" +%Y%m%d.%H%M%S