#!/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)"