From 3a31996ba2b1cf99a81c5865c57eb2b92d127305 Mon Sep 17 00:00:00 2001 From: crafter-z <62090995+crafter-z@users.noreply.github.com> Date: Mon, 12 Jun 2023 15:20:54 +0800 Subject: [PATCH] Update start.sh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 有些系统会将x86_64写作amd64。这个commit修复了在标记架构为amd64的机器上无法运行的问题 --- start.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/start.sh b/start.sh index 70a569f..8e3097a 100755 --- a/start.sh +++ b/start.sh @@ -162,7 +162,7 @@ sed -r -i '/^secret: /s@(secret: ).*@\1'${Secret}'@g' $Conf_Dir/config.yaml echo -e '\n正在启动Clash服务...' Text5="服务启动成功!" Text6="服务启动失败!" -if [[ $CpuArch =~ "x86_64" ]]; then +if [[ $CpuArch =~ "x86_64" || $CpuArch =~ "amd64" ]]; then nohup $Server_Dir/bin/clash-linux-amd64 -d $Conf_Dir &> $Log_Dir/clash.log & ReturnStatus=$? if_success $Text5 $Text6 $ReturnStatus