diff --git a/dc3/bin/tag.sh b/dc3/bin/tag.sh index 5114fce00..2591e0c6f 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