5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-26 00:11:36 +00:00
yggdrasil-go/contrib/semver/version.sh
2021-06-05 21:32:18 +01:00

6 lines
198 B
Bash

#!/bin/sh
# We'll just use the `git describe` version since it's reasonably
# easy to refer to a tag or commit using the describe output.
git describe --match="v[0-9]*\.[0-9]*\.[0-9]*" 2>/dev/null