Skip to content

Commit

Permalink
Merge pull request #1465 from m-1-k-3/S09_unique_bins
Browse files Browse the repository at this point in the history
S09 unique bins
  • Loading branch information
BenediktMKuehne authored Feb 15, 2025
2 parents 5d2c10f + 4cdea20 commit d15f4f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions modules/S09_firmware_base_version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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=""

Expand All @@ -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 || 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
Expand Down

0 comments on commit d15f4f5

Please sign in to comment.