From 8ebc1e27f7a19091515b8de742d486698dae4d6e Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sat, 13 Jul 2024 22:16:10 +0200 Subject: omd --- versie.sh | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 versie.sh (limited to 'versie.sh') diff --git a/versie.sh b/versie.sh new file mode 100755 index 0000000..85aecf1 --- /dev/null +++ b/versie.sh @@ -0,0 +1,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)" -- cgit v1.2.3-70-g09d2