Files
openlan/dist/version.sh
2023-12-27 21:24:02 +08:00

15 lines
173 B
Bash
Executable File

#!/bin/bash
if [ -e "VERSION" ]; then
cat VERSION
exit 0
fi
ver=$(git describe --tags --abbrev=0 --match 'v*')
if [ $? -eq 0 ]; then
echo $ver
exit 0
fi
date +%y%m%d