diff --git a/script/dist b/script/dist index 8b5111b..34b0d2a 100755 --- a/script/dist +++ b/script/dist @@ -31,9 +31,9 @@ function get_version { echo ${tags[0]} return fi - latest_tag=$( ( git describe --abbrev=0 --tags 2>/dev/null || exit ) ) + latest_tag=${tags[0]} local latest_branch_commit=$(git log --pretty=format:'%h' -n 1) - echo "${latest_tag:-0.0.0}-dev+rev.$latest_branch_commit" + echo "${latest_tag:-0.0.0}+rev.$latest_branch_commit" } dep ensure -v