1
0
mirror of https://github.com/gophernicus/gophernicus.git synced 2024-06-23 06:35:34 +00:00
gophernicus/version
2019-03-14 20:21:01 +00:00

15 lines
178 B
Bash
Executable File

#!/bin/sh
##
## Generate Gophernicus version/build number
##
DEFAULT="120+"
if which git >/dev/null && test -d .git; then
git log | grep -c "^commit"
else
echo $DEFAULT
fi