From 0835cd0593a2e8485be6c4c26a9c6f6bd4a19ff9 Mon Sep 17 00:00:00 2001 From: Packet Please Date: Fri, 8 Nov 2024 00:54:47 +0100 Subject: [PATCH] build: fix failure detection once more --- build/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build/build.sh b/build/build.sh index ed76016..0112739 100755 --- a/build/build.sh +++ b/build/build.sh @@ -249,7 +249,7 @@ EOF |& tee "bin/targets/$target/faillogs/$p.log" >&2 # if build resulted in image files, we can delete the log - cnt="$(find "bin/targets/$target" -name '*.bin' -or -name '*.img' -or -name '*.gz' | wc -l)" + cnt="$(find "bin/targets/$target/" -name "*$p*.bin" -or -name "*$p*.img" -or -name "*$p*.gz" | wc -l)" if [ "$cnt" -gt 0 ]; then rm -v "bin/targets/$target/faillogs/$p.log" fi