[TEST] dumper: Fix ikconfig extraction resulting empty file

This commit is contained in:
Hendra Manudinata 2021-06-21 12:17:19 +07:00
parent 5443d89a08
commit 8861794b63
No known key found for this signature in database
GPG Key ID: 2E4D15A9C6D59010

View File

@ -661,7 +661,7 @@ if [[ -f "${OUTDIR}"/boot.img ]]; then
printf "Boot extracted\n"
# extract-ikconfig
mkdir -p "${OUTDIR}"/bootRE
bash "${EXTRACT_IKCONFIG}" "${OUTDIR}"/boot.img > "${OUTDIR}"/bootRE/ikconfig >/dev/null 2>&1
bash "${EXTRACT_IKCONFIG}" "${OUTDIR}"/boot.img > "${OUTDIR}"/bootRE/ikconfig 2> /dev/null
[[ ! -s "${OUTDIR}"/bootRE/ikconfig ]] && rm -f "${OUTDIR}"/bootRE/ikconfig 2>/dev/null
# vmlinux-to-elf
if [[ ! -f "${OUTDIR}"/vendor_boot.img ]]; then