From 52a4eea0eecf6958f0e3f534335a7740dfc38484 Mon Sep 17 00:00:00 2001 From: m-1-k-3 Date: Tue, 31 Dec 2024 14:01:41 +0100 Subject: [PATCH] fix check --- helpers/helpers_emba_prepare.sh | 2 +- modules/S116_qemu_version_detection.sh | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/helpers/helpers_emba_prepare.sh b/helpers/helpers_emba_prepare.sh index bf314dca1..2ab38daf0 100755 --- a/helpers/helpers_emba_prepare.sh +++ b/helpers/helpers_emba_prepare.sh @@ -210,7 +210,7 @@ binary_architecture_threader() { } architecture_check() { - if [[ ! -f "${P99_CSV_LOG}" ]] || [[ ${#ALL_FILES_ARR[@]} -eq 0 ]] ; then + if [[ ${#ALL_FILES_ARR[@]} -eq 0 ]] ; then print_output "[-] WARNING: Architecture auto detection and backend data population not possible\\n" return fi diff --git a/modules/S116_qemu_version_detection.sh b/modules/S116_qemu_version_detection.sh index 6da90fcd2..2528083b1 100755 --- a/modules/S116_qemu_version_detection.sh +++ b/modules/S116_qemu_version_detection.sh @@ -35,7 +35,10 @@ S116_qemu_version_detection() { if ! [[ " ${MODULES_EXPORTED[*]} " == *S09* ]]; then break fi - print_output "[*] Waiting for S09 module - strings and unhandled file generaation ..." "no_log" + if grep -q "S09_*finished" "${LOG_DIR}/emba.log"; then + break + fi + print_output "[*] Waiting for S09 module - strings and unhandled file generation ..." "no_log" sleep 1 done