Update start.sh

对配置文件转换添加限制,只对x86_64 架构的服务器进行转换。
This commit is contained in:
wanhebin 2023-06-16 00:24:22 +08:00 committed by GitHub
parent 71e8d7b502
commit fc8e8817f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -135,13 +135,11 @@ if_success $Text3 $Text4 $ReturnStatus
\cp -a $Temp_Dir/clash.yaml $Temp_Dir/clash_config.yaml
## 判断订阅内容是否符合clash配置文件标准尝试转换当前只支持对 x86_64 架构的服务器做处理
## 判断订阅内容是否符合clash配置文件标准尝试转换当前不支持对 x86_64 以外的CPU架构服务器进行clash配置文件检测和转换此功能将在后续添加
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