From 71e8d7b502e936cf47796ba3af51e185340a81ec Mon Sep 17 00:00:00 2001 From: wanhebin <48253420+wanhebin@users.noreply.github.com> Date: Fri, 16 Jun 2023 00:13:58 +0800 Subject: [PATCH] Update start.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 对配置文件转换添加限制,只对x86_64 架构的服务器进行转换。 --- start.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/start.sh b/start.sh index 8e3097a..4217e82 100755 --- a/start.sh +++ b/start.sh @@ -135,10 +135,14 @@ if_success $Text3 $Text4 $ReturnStatus \cp -a $Temp_Dir/clash.yaml $Temp_Dir/clash_config.yaml -## 判断订阅内容是否符合clash配置文件标准,尝试转换 -echo -e '\n判断订阅内容是否符合clash配置文件标准:' -bash $Server_Dir/scripts/clash_profile_conversion.sh -sleep 3 +## 判断订阅内容是否符合clash配置文件标准,尝试转换(当前只支持对 x86_64 架构的服务器做处理) +if [[ $CpuArch =~ "x86_64" || $CpuArch =~ "amd64" ]]; then + echo -e '\n判断订阅内容是否符合clash配置文件标准:' + bash $Server_Dir/scripts/clash_profile_conversion.sh + sleep 3 +else + echo -e '\n当前不支持对 x86_64 以外的CPU架构服务器进行clash配置文件检测和转换!!!' +fi ## Clash 配置文件重新格式化及配置