Skip to content

Commit

Permalink
feat: .
Browse files Browse the repository at this point in the history
  • Loading branch information
zzi666 committed May 26, 2024
1 parent 4e317d6 commit f53e44b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions dc3/bin/tag.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f53e44b

Please sign in to comment.