forked from loafle/openapi-generator-original
Update bump.sh to go SNAPSHOT to version (#5727)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user