Let sc.0.test.0 be the initial version after a merge

This commit is contained in:
su-ex 2022-01-17 21:27:44 +01:00
parent 3c9487541b
commit c4e17a1bc4
No known key found for this signature in database
GPG Key ID: E9E9F6644110943E

View File

@ -162,7 +162,8 @@ get_current_versions() {
get_versions_string() {
versions_string="${versions[0]}-sc.${versions[1]}"
if [[ ${versions[2]} -gt 0 ]]; then
# both zero means the initial version after a merge
if [[ ${versions[1]} -eq 0 || ${versions[2]} -gt 0 ]]; then
versions_string+=".test.${versions[2]}"
fi
}