1
0
mirror of https://github.com/moparisthebest/sslh synced 2024-11-24 18:12:17 -05:00

Use portable way of getting modified time

This commit is contained in:
Aaron Madlon-Kay 2014-11-22 23:44:52 +09:00
parent 9a0a9b9492
commit 8c3362e9ce

View File

@ -21,7 +21,7 @@ if ! `(git status | grep -q "On branch") 2> /dev/null`; then
# zip file with all files dated from the last # zip file with all files dated from the last
# change: use the Makefile's modification time as a # change: use the Makefile's modification time as a
# release number # release number
release=head-`stat -c "%y" Makefile | sed 's/ .*//'` release=head-`perl -MPOSIX -e 'print strftime "%Y-%m-%d",localtime((stat "Makefile")[9])'`
fi fi
fi fi