Update bump.sh to go SNAPSHOT to version (#5727)

This commit is contained in:
Jim Schubert
2020-03-27 21:30:46 -04:00
committed by GitHub
parent 2f9c20a175
commit 2a115090a7

View File

@@ -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