Skip to content

Commit

Permalink
Update bump.sh to go SNAPSHOT to version (OpenAPITools#5727)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimschubert authored and michaelpro1 committed May 7, 2020
1 parent f879a98 commit dc88064
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bin/utils/release/bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ if [[ -z "${to}" ]]; then
;;
snapshot)
if [[ true = ${from_parts[3]} ]]; then
err "Can't move from SNAPSHOT to SNAPSHOT (from=${from})."
# Going from -SNAPSHOT to its release
to="${from_parts[0]}.${from_parts[1]}.${from_parts[2]}"
else
# Going from some version to its next version and -SNAPSHOT
to="${from_parts[0]}.${from_parts[1]}.$(( ${from_parts[2]} + 1 ))-SNAPSHOT"
version "$to" to_parts
fi
version "$to" to_parts
;;
esac
fi
Expand Down

0 comments on commit dc88064

Please sign in to comment.