From 471880d6a2ace0bca8c368081fe0c0ce5199dc34 Mon Sep 17 00:00:00 2001 From: Martin Beentjes Date: Wed, 5 Feb 2020 16:42:52 +0100 Subject: [PATCH] Update entrypoint.sh --- entrypoint.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 70ed95a..cae9032 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -47,18 +47,27 @@ main() { "bug") ((++patch)); pre="";; "alpha") + if [[ ! -z "$preversion" ]]; then + preversion=0 + fi ((++preversion)) if [[ "$pre" != "-alpha" ]]; then preversion=1 fi pre="-alpha$preversion";; "beta") + if [[ ! -z "$preversion" ]]; then + preversion=0 + fi ((++preversion)) if [[ "$pre" != "-beta" ]]; then preversion=1 fi pre="-beta$preversion";; "rc") + if [[ ! -z "$preversion" ]]; then + preversion=0 + fi ((++preversion)) if [[ "$pre" != "-rc" ]]; then preversion=1