diff --git a/dist/bump-version.sh b/dist/bump-version.sh index 5d57040..0fdcb4e 100755 --- a/dist/bump-version.sh +++ b/dist/bump-version.sh @@ -3,9 +3,9 @@ this="$(readlink -f "${0}")" this_dir="$(dirname "${this}")" -git_branch="$(git rev-parse --abbrev-ref HEAD)" +# git_branch="$(git rev-parse --abbrev-ref HEAD)" git_tag="$(git describe --abbrev=0)" -version_str="${git_branch##*/}" +version_str="${git_tag##*/}" version_str="0.2.0" sed -ri "s/(version\s*:).*$/\1 '${version_str}'/" "${this_dir}/../example/kiwi.yml"