mirror of
https://github.com/mas-cli/mas
synced 2024-11-22 03:23:08 +00:00
Restore git describe
check in version
.
Signed-off-by: Ross Goldberg <484615+rgoldberg@users.noreply.github.com>
This commit is contained in:
parent
e9fcf2b254
commit
f9ce4136e4
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue