File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 77CURRENTVERSION=$( git describe --tags $( git rev-list --tags --max-count=1) )
88
99bumpversion (){
10-
1110 python3 -c " import semver" 2> /dev/null || {
1211 echo " install semver python module to bump version automatically: ie"
1312 echo " pip install --user semver"
@@ -22,15 +21,15 @@ bumpversion(){
2221 elif [[ ${ANSWER,,} == " p" ]]; then
2322 mode=patch
2423 else
25- print " no or bad reply??"
24+ echo " no or bad reply??"
2625 exit
2726 fi
28- VERSION=$( python3 -c " import semver,sys;print(str(semver.VersionInfo.parse(sys.argv[1]).bump_${mode} ()))"
29- ${CURRENTVERSION} )
27+ VERSION=$( python3 -c " import semver,sys;print(str(semver.VersionInfo.parse(sys.argv[1]).bump_${mode} ()))" ${CURRENTVERSION} )
3028 [[ -z ${VERSION} ]] && {
3129 echo " could not bump version automatically"
3230 exit
3331 }
32+ true
3433}
3534
3635echo " Current version is ${CURRENTVERSION} "
You can’t perform that action at this time.
0 commit comments