fix: Linux安装脚本适配最新分支结构

This commit is contained in:
Cookie987
2025-04-04 22:01:38 +08:00
parent e19b36d42f
commit c914d4fc0e

View File

@@ -369,7 +369,18 @@ run_installation() {
# 选择分支 # 选择分支
choose_branch() { choose_branch() {
BRANCH=refactor BRANCH=$(whiptail --title "🔀 选择分支" --radiolist "请选择要安装的分支:" 15 60 4 \
"main" "稳定最新版(推荐)" ON \
"classical" "经典版" OFF \
"custom" "自定义分支" OFF 3>&1 1>&2 2>&3)
if [[ "$BRANCH" == "custom" ]]; then
BRANCH=$(whiptail --title "🔀 自定义分支" --inputbox "请输入自定义分支名称:" 10 60 "refactor" 3>&1 1>&2 2>&3)
[[ -z "$BRANCH" ]] && {
whiptail --msgbox "🚫 分支名称不能为空!" 10 60
exit 1
}
fi
} }
choose_branch choose_branch