移除对 Bash 安装的检查,简化脚本逻辑
This commit is contained in:
+1
-8
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user