summaryrefslogtreecommitdiff
path: root/versie.sh
blob: 85aecf187c9fe74beacaaefa2f3fcc1a91560b4c (plain)
1
2
3
4
#!/usr/bin/env bash
tag=$(git describe --tags 2>/dev/null)
if [[ $? -eq 0 ]]; then echo "$tag"; exit; fi
echo "vgit-$(git rev-parse --short HEAD)"