From 8b583d266a4e24bbcbc2d24250a4c15a1d6e2b76 Mon Sep 17 00:00:00 2001 From: m-1-k-3 Date: Sat, 15 Feb 2025 16:35:49 +0100 Subject: [PATCH 1/2] S09 only one bin fix --- modules/S09_firmware_base_version_check.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/S09_firmware_base_version_check.sh b/modules/S09_firmware_base_version_check.sh index c557a3408..e5490eccc 100755 --- a/modules/S09_firmware_base_version_check.sh +++ b/modules/S09_firmware_base_version_check.sh @@ -748,7 +748,7 @@ bin_string_checker() { mapfile -t lMD5_SUM_MATCHES_ARR < <(grep -a -o -E -l -r "${lVERSION_IDENTIFIER}" "${LOG_PATH_MODULE}"/strings_bins | rev | cut -d '/' -f 1 | rev | cut -d '_' -f2 | sort -u || true) FILE_ARR=() for lMD5_SUM_MATCHED in "${lMD5_SUM_MATCHES_ARR[@]}"; do - lMACHTED_FNAME=$(grep ";${lMD5_SUM_MATCHED};" "${P99_CSV_LOG}" | cut -d ';' -f1 || true) + lMACHTED_FNAME=$(grep ";${lMD5_SUM_MATCHED};" "${P99_CSV_LOG}" | cut -d ';' -f1 | head -1 || true) FILE_ARR+=("${lMACHTED_FNAME}") # print_output "[*] Matched ${lMACHTED_FNAME}" "no_log" done From 4cdea20f3d908fe6d118ffbc83b2850b653c5fef Mon Sep 17 00:00:00 2001 From: m-1-k-3 Date: Sat, 15 Feb 2025 16:37:08 +0100 Subject: [PATCH 2/2] typo --- modules/S09_firmware_base_version_check.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/modules/S09_firmware_base_version_check.sh b/modules/S09_firmware_base_version_check.sh index e5490eccc..ea97a4848 100755 --- a/modules/S09_firmware_base_version_check.sh +++ b/modules/S09_firmware_base_version_check.sh @@ -728,7 +728,7 @@ bin_string_checker() { local lMD5_SUM="" local lMD5_SUM_MATCHES_ARR=() local lMD5_SUM_MATCHED="" - local lMACHTED_FNAME="" + local lMATCHED_FNAME="" local lBIN_DEPS_ARR=() local lBIN_DEPENDENCY="" @@ -748,9 +748,9 @@ bin_string_checker() { mapfile -t lMD5_SUM_MATCHES_ARR < <(grep -a -o -E -l -r "${lVERSION_IDENTIFIER}" "${LOG_PATH_MODULE}"/strings_bins | rev | cut -d '/' -f 1 | rev | cut -d '_' -f2 | sort -u || true) FILE_ARR=() for lMD5_SUM_MATCHED in "${lMD5_SUM_MATCHES_ARR[@]}"; do - lMACHTED_FNAME=$(grep ";${lMD5_SUM_MATCHED};" "${P99_CSV_LOG}" | cut -d ';' -f1 | head -1 || true) - FILE_ARR+=("${lMACHTED_FNAME}") - # print_output "[*] Matched ${lMACHTED_FNAME}" "no_log" + lMATCHED_FNAME=$(grep ";${lMD5_SUM_MATCHED};" "${P99_CSV_LOG}" | cut -d ';' -f1 | head -1 || true) + FILE_ARR+=("${lMATCHED_FNAME}") + # print_output "[*] Matched ${lMATCHED_FNAME}" "no_log" done if [[ "${#FILE_ARR[@]}" -eq 0 ]]; then