From af1edc0c95f4cbc82c58be0856d3eb66a21d09e6 Mon Sep 17 00:00:00 2001 From: Jaquee Date: Tue, 2 May 2017 20:01:49 +0200 Subject: fix version info --- utils.sh | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'utils.sh') diff --git a/utils.sh b/utils.sh index 556cc5d3..fcaaa69d 100755 --- a/utils.sh +++ b/utils.sh @@ -53,6 +53,12 @@ function get_tag() echo "You are ahead of or behind a tagged release" VERSIONTAG="$COMMIT" fi + # save tag name + commit if availible + TAGNAME=$(git describe | sed -e 's/[\t ]*//') + if test -z "$TAGNAME" + then + TAGNAME="$VERSIONTAG" + fi fi fi } -- cgit v1.2.3