From 48705a0dd96914e57f965bc26fcf7b9deda1ed79 Mon Sep 17 00:00:00 2001 From: juewuy Date: Tue, 27 Jan 2026 19:54:10 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BF=AE=E5=A4=8D=E5=B0=8F=E9=97=AA=E5=AD=98?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=86=85=E6=A0=B8=E4=BD=8D=E7=BD=AE=E9=94=99?= =?UTF-8?q?=E4=B9=B1=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/libs/core_tools.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/libs/core_tools.sh b/scripts/libs/core_tools.sh index 98dfb1c1..35e23137 100644 --- a/scripts/libs/core_tools.sh +++ b/scripts/libs/core_tools.sh @@ -23,7 +23,9 @@ core_unzip() { #$1:需要解压的文件 $2:目标文件名 } core_find(){ if [ ! -f "$TMPDIR"/CrashCore ];then - core_dir=$(find "$BINDIR"/CrashCore.* $find_para 2>/dev/null) + [ -n "$(find "$CRASHDIR"/CrashCore.* $find_para 2>/dev/null)" ] && + mv -f "$CRASHDIR"/CrashCore.* "$BINDIR"/ + core_dir=$(find "$BINDIR"/CrashCore.* $find_para 2>/dev/null | head -n 1) [ -n "$core_dir" ] && core_unzip "$core_dir" CrashCore fi }