From f53e44b9a51c65b3df81ff912da738aabbadc6a7 Mon Sep 17 00:00:00 2001 From: zzi666 <756106614@qq.com> Date: Mon, 27 May 2024 00:13:19 +0800 Subject: [PATCH] feat: . --- dc3/bin/tag.sh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/dc3/bin/tag.sh b/dc3/bin/tag.sh index 9cacd61..750c640 100755 --- a/dc3/bin/tag.sh +++ b/dc3/bin/tag.sh @@ -23,23 +23,23 @@ type="" # shellcheck disable=SC2092 # shellcheck disable=SC2006 if `git status | grep "develop" &>/dev/null`; then - type="test" + type="develop" fi # shellcheck disable=SC2092 # shellcheck disable=SC2006 -if `git status | grep "pre" &>/dev/null`; then - type="pre" +if `git status | grep "release" &>/dev/null`; then + type="release" fi # shellcheck disable=SC2092 # shellcheck disable=SC2006 -if `git status | grep "release" &>/dev/null`; then - type="pro" +if `git status | grep "main" &>/dev/null`; then + type="release" fi if [[ ${type} == "" ]]; then - 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." + echo -e "This branch doesn't support tagging, please switch to the \033[31mdevelop\033[0m or \033[31mrelease\033[0m branch." exit fi