Skip to content

Commit 4a4e2ae

Browse files
committed
feat: .
1 parent af8ff34 commit 4a4e2ae

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

dc3/bin/tag.sh

+6-6
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,23 @@ type=""
2323
# shellcheck disable=SC2092
2424
# shellcheck disable=SC2006
2525
if `git status | grep "develop" &>/dev/null`; then
26-
type="test"
26+
type="develop"
2727
fi
2828

2929
# shellcheck disable=SC2092
3030
# shellcheck disable=SC2006
31-
if `git status | grep "pre" &>/dev/null`; then
32-
type="pre"
31+
if `git status | grep "release" &>/dev/null`; then
32+
type="release"
3333
fi
3434

3535
# shellcheck disable=SC2092
3636
# shellcheck disable=SC2006
37-
if `git status | grep "release" &>/dev/null`; then
38-
type="pro"
37+
if `git status | grep "main" &>/dev/null`; then
38+
type="release"
3939
fi
4040

4141
if [[ ${type} == "" ]]; then
42-
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."
42+
echo -e "This branch doesn't support tagging, please switch to the \033[31mdevelop\033[0m or \033[31mrelease\033[0m branch."
4343
exit
4444
fi
4545

0 commit comments

Comments
 (0)