Skip to content

Commit

Permalink
Merge pull request #1461 from gluesmith2021/fix_s09_grep_arg_list_too…
Browse files Browse the repository at this point in the history
…_long

Fix empty results from S09 because of "grep: Argument list too long"
  • Loading branch information
m-1-k-3 authored Feb 14, 2025
2 parents 1e0f4b2 + 3a530a3 commit 4c2e125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/S09_firmware_base_version_check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -744,7 +744,7 @@ bin_string_checker() {
lVERSION_IDENTIFIER="${lVERSION_IDENTIFIER%\"}"
fi
# print_output "[*] Testing ${lVERSION_IDENTIFIER} from ${lVERSION_IDENTIFIERS_ARR[*]}" "no_log"
mapfile -t lMD5_SUM_MATCHES_ARR < <(grep -a -o -E -l "${lVERSION_IDENTIFIER}" "${LOG_PATH_MODULE}"/strings_bins/strings_* | rev | cut -d '/' -f 1 | rev | cut -d '_' -f2 | sort -u || true)
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)
Expand Down

0 comments on commit 4c2e125

Please sign in to comment.