From c914d4fc0ece2192c87d30e5f54f07e35cc5dc30 Mon Sep 17 00:00:00 2001 From: Cookie987 Date: Fri, 4 Apr 2025 22:01:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Linux=E5=AE=89=E8=A3=85=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E9=80=82=E9=85=8D=E6=9C=80=E6=96=B0=E5=88=86=E6=94=AF?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/run.sh | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/scripts/run.sh b/scripts/run.sh index 1f7fba1ce..8babf0888 100644 --- a/scripts/run.sh +++ b/scripts/run.sh @@ -369,7 +369,18 @@ run_installation() { # 选择分支 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