Skip to content

Commit 75356c0

Browse files
committed
fix release script
Signed-off-by: Chmouel Boudjnah <[email protected]>
1 parent b70da51 commit 75356c0

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

hack/make-release.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ [email protected]:openshift-pipelines/pipelines-as-code
77
CURRENTVERSION=$(git describe --tags $(git rev-list --tags --max-count=1))
88

99
bumpversion(){
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

3635
echo "Current version is ${CURRENTVERSION}"

0 commit comments

Comments
 (0)