Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

S09 unique bins #1465

Merged
merged 2 commits into from
Feb 15, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading