Skip to content
Snippets Groups Projects
Commit 3b019a36 authored by Mirco Nasuti's avatar Mirco Nasuti
Browse files

Latest version in publish script

parent 7ba059ac
No related branches found
No related tags found
No related merge requests found
......@@ -60,8 +60,7 @@ select_part() {
git pull --tags
# Look for a version tag in Git. If not found, ask the user to provide one
[ $(git tag --points-at HEAD | wc -l) == 1 ] || (
latest_version=$(git describe --abbrev=00 || \
(bumpversion --dry-run --list patch | grep current_version | sed -r s,"^.*=",,) || echo '0.0.1')
latest_version=$( (bumpversion --dry-run --list patch | grep current_version | sed -r s,"^.*=",,) || echo '0.0.1')
echo
echo "Current commit has not been tagged with a version. Latest known version is $latest_version."
echo
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment