更新 bin/ZeroWrt
Signed-off-by: zhao <zhao@noreply.localhost>
This commit is contained in:
parent
20d143dcda
commit
22c47f9d6b
31
bin/ZeroWrt
31
bin/ZeroWrt
@ -173,10 +173,37 @@ install_apps() {
|
||||
|
||||
case "$app_choice" in
|
||||
1)
|
||||
# ShellClash 安装部分保持不变
|
||||
color_output "\e[34m[安装 ShellClash]\e[0m"
|
||||
color_output "\e[36m请选择 ShellClash 的安装源:\e[0m"
|
||||
color_output "1. GitHub 源"
|
||||
color_output "2. jsDelivr CDN 源"
|
||||
color_output "0. 返回"
|
||||
read -p "请输入您的选择 [0-2]: " install_choice
|
||||
|
||||
case "$install_choice" in
|
||||
1) export url='https://raw.githubusercontent.com/juewuy/ShellCrash/master' ;;
|
||||
2) export url='https://fastly.jsdelivr.net/gh/juewuy/ShellCrash@master' ;;
|
||||
0) continue ;;
|
||||
*)
|
||||
color_output "\e[31m无效选项\e[0m"
|
||||
sleep 2
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ "$install_choice" != "0" ]; then
|
||||
sh -c "$(curl -kfsSl $url/install.sh)" && source /etc/profile &> /dev/null
|
||||
color_output "\e[32mShellClash 已成功安装。\e[0m"
|
||||
read -p "按 Enter 键继续..."
|
||||
fi
|
||||
;;
|
||||
|
||||
2)
|
||||
# 小雅 Alist 安装部分保持不变
|
||||
color_output "\e[34m[安装小雅 Alist]\e[0m"
|
||||
color_output "\e[33m正在安装小雅 Alist...\e[0m"
|
||||
bash -c "$(curl --insecure -fsSL https://ddsrem.com/xiaoya_install.sh)"
|
||||
color_output "\e[32m小雅 Alist 安装完成。\e[0m"
|
||||
read -p "按 Enter 键继续..."
|
||||
;;
|
||||
3)
|
||||
color_output "\e[34m[部署 Subconverter]\e[0m"
|
||||
|
Loading…
Reference in New Issue
Block a user