Restore git describe check in version.

Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
Ross Goldberg 2024-10-27 07:26:46 -04:00
parent e9fcf2b254
commit f9ce4136e4
No known key found for this signature in database

View file

@ -13,7 +13,7 @@ if ! cd -- "${mas_dir}"; then
exit 1
fi
if [[ -z "${MAS_VERSION:-}" ]]; then
if [[ -z "${MAS_VERSION:-}" ]] && git describe >/dev/null 2>&1; then
# Use last tag if MAS_VERSION environment variable is unset or empty
MAS_VERSION=$(git describe --abbrev=0 --tags 2>/dev/null || true)
fi