From 962243851c604752793e39f0ac2f97d3689c5c61 Mon Sep 17 00:00:00 2001 From: Olia Lisa Date: Wed, 14 Jan 2026 17:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=AF=B9=20Bash=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85=E7=9A=84=E6=A3=80=E6=9F=A5=EF=BC=8C=E7=AE=80=E5=8C=96?= =?UTF-8?q?=E8=84=9A=E6=9C=AC=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/run.sh | 3 --- bin/utils/base.sh | 9 +-------- install.sh | 3 --- 3 files changed, 1 insertion(+), 14 deletions(-) diff --git a/bin/run.sh b/bin/run.sh index 7cb7b83..00d7c65 100644 --- a/bin/run.sh +++ b/bin/run.sh @@ -11,9 +11,6 @@ run() { # 检查jq是否安装 check_jq - # 检查bash是否安装 - check_bash_installed - # 如果容器已经启动, 则先停止容器 local compose_file="$script_dir/../docker-compose.yml" if docker-compose -f "$compose_file" ps | grep -q "Up"; then diff --git a/bin/utils/base.sh b/bin/utils/base.sh index d209876..5ba8929 100644 --- a/bin/utils/base.sh +++ b/bin/utils/base.sh @@ -119,14 +119,7 @@ url_encode() { echo "$encoded" } -# 检查 Bash 是否已安装 -check_bash_installed() { - if ! command -v bash &> /dev/null; then - echo "错误: Bash 未安装!" - return 1 - fi -} - +# 检查tuic配置文件 check_config_file(){ local script_dir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/../" # 脚本文件夹绝对路径 local config_file="$script_dir/../config/config.json" diff --git a/install.sh b/install.sh index 0a95e80..deddab9 100644 --- a/install.sh +++ b/install.sh @@ -34,9 +34,6 @@ main(){ local script_dir="$(cd "$(dirname "$0")"; pwd)/bin" # 脚本所在目录 source "${script_dir}/utils/base.sh" - # 检查bash环境是否安装 - check_bash_installed - # 显示菜单 echo "请选择一个操作:" echo "1. 一键部署"