Update scripts/run.sh
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
This commit is contained in:
@@ -373,13 +373,23 @@ run_installation() {
|
|||||||
"main" "稳定最新版(推荐)" ON \
|
"main" "稳定最新版(推荐)" ON \
|
||||||
"classical" "经典版" OFF \
|
"classical" "经典版" OFF \
|
||||||
"custom" "自定义分支" OFF 3>&1 1>&2 2>&3)
|
"custom" "自定义分支" OFF 3>&1 1>&2 2>&3)
|
||||||
|
RETVAL=$?
|
||||||
|
if [ $RETVAL -ne 0 ]; then
|
||||||
|
whiptail --msgbox "操作取消!" 10 60
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$BRANCH" == "custom" ]]; then
|
if [[ "$BRANCH" == "custom" ]]; then
|
||||||
BRANCH=$(whiptail --title "🔀 自定义分支" --inputbox "请输入自定义分支名称:" 10 60 "refactor" 3>&1 1>&2 2>&3)
|
BRANCH=$(whiptail --title "🔀 自定义分支" --inputbox "请输入自定义分支名称:" 10 60 "refactor" 3>&1 1>&2 2>&3)
|
||||||
[[ -z "$BRANCH" ]] && {
|
RETVAL=$?
|
||||||
|
if [ $RETVAL -ne 0 ]; then
|
||||||
|
whiptail --msgbox "输入取消!" 10 60
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
if [[ -z "$BRANCH" ]]; then
|
||||||
whiptail --msgbox "🚫 分支名称不能为空!" 10 60
|
whiptail --msgbox "🚫 分支名称不能为空!" 10 60
|
||||||
exit 1
|
exit 1
|
||||||
}
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
choose_branch
|
choose_branch
|
||||||
|
|||||||
Reference in New Issue
Block a user