From 62136a84ad782599154d45f0f4d907589a6bef59 Mon Sep 17 00:00:00 2001 From: DragonAura <32223554+DragonAura@users.noreply.github.com> Date: Mon, 25 Mar 2024 13:39:23 +0800 Subject: [PATCH] Update compile.sh --- dependency/shell/compile.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dependency/shell/compile.sh b/dependency/shell/compile.sh index b013bd31..2231eac5 100644 --- a/dependency/shell/compile.sh +++ b/dependency/shell/compile.sh @@ -16,7 +16,7 @@ then cp -f $bind/$filename $workdir/API/src/AI.cpp cmake ./CMakeLists.txt && make -j$(nproc) >$base_name.txt 2>&1 mv ./capi $output/$base_name - if [ $? -eq 0 ]; then + if [ $? -ne 0 ]; then flag=0 fi mv ./compile_log.txt $output/compile_log.txt