Update start.sh

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

View File

@ -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 配置文件重新格式化及配置