From d1519f5466bc3ef1787e33b25e6e30b402e242c8 Mon Sep 17 00:00:00 2001 From: pnoker Date: Thu, 13 Jul 2023 23:51:43 +0800 Subject: [PATCH] feat: update to 2023.4.5 --- dc3/bin/tag.sh | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/dc3/bin/tag.sh b/dc3/bin/tag.sh index 5114fce..2591e0c 100644 --- a/dc3/bin/tag.sh +++ b/dc3/bin/tag.sh @@ -25,17 +25,23 @@ type="" # shellcheck disable=SC2092 # shellcheck disable=SC2006 if `git status | grep "develop" &>/dev/null`; then - type="develop" + type="test" +fi + +# shellcheck disable=SC2092 +# shellcheck disable=SC2006 +if `git status | grep "pre" &>/dev/null`; then + type="pre" fi # shellcheck disable=SC2092 # shellcheck disable=SC2006 if `git status | grep "release" &>/dev/null`; then - type="release" + type="pro" fi if [[ ${type} == "" ]]; then - echo -e "This branch doesn't support tagging, please switch to the \033[31mdevelop\033[0m or \033[31mrelease\033[0m branch." + echo -e "This branch doesn't support tagging, please switch to the \033[31mdevelop\033[0m, \033[31mpre\033[0m or \033[31mrelease\033[0m branch." exit fi