aboutsummaryrefslogtreecommitdiff
path: root/utils.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils.sh')
-rwxr-xr-xutils.sh6
1 files changed, 6 insertions, 0 deletions
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
}