From dda15765f1c14ad9c51d5b25848a2bc20f2d8153 Mon Sep 17 00:00:00 2001 From: Kade <16680514+KadeDivent@users.noreply.github.com> Date: Thu, 27 Jul 2023 11:04:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E9=99=A4=E5=B8=B8=E8=A7=81=E7=9A=84?= =?UTF-8?q?=E5=8E=8B=E7=BC=A9=E6=96=87=E4=BB=B6=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/clash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/clash.sh b/scripts/clash.sh index b27a219..cdb1d7f 100644 --- a/scripts/clash.sh +++ b/scripts/clash.sh @@ -98,7 +98,7 @@ ckstatus(){ #检查执行权限 [ ! -x $clashdir/start.sh ] && chmod +x $clashdir/start.sh #检查/tmp内核文件 - for file in `ls -F /tmp | grep -v [/\$] | grep -v '\ ' | grep -iE '^clash$|^clash-linux*|^clash.meta*'` ; do + for file in `ls -F /tmp | grep -v [/\$] | grep -v '\ ' | grep -Ev ".*[(gz)(zip)(7z)(tar)(xz)]$" | grep -iE '^clash$|^clash-linux*|^clash.meta*'` ; do file=/tmp/$file chmod +x $file tmp_version=$($file -v 2>/dev/null)