mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-09-19 10:11:36 +08:00
feat: update to 2023.4.5
This commit is contained in:
+9
-3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user