SmartAudio/scripts/getver.sh

9 lines
167 B
Bash
Raw Normal View History

2018-07-13 01:31:50 +00:00
#!/usr/bin/env bash
[ -n "$TOPDIR" ] && cd $TOPDIR
if [ "$1" == "-id" ]; then
REV=`date "+%s"`
echo "$REV"
else
date -d "$(($1 -`date '+%s'`)) sec " +%y-%-m-%-d
fi