From 2e779a54951406247197cf21a31c54a36ec1fa06 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 11 Dec 2023 05:21:27 +0000 Subject: handle errors on exits from subshells most of these are probably redundant, and will never be called, but lbmk needs to be as safe as possible under fault conditions. fail early, fail hard. Signed-off-by: Leah Rowe --- script/vendor/download | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'script/vendor/download') diff --git a/script/vendor/download b/script/vendor/download index 4613c2b6..eada2e91 100755 --- a/script/vendor/download +++ b/script/vendor/download @@ -214,7 +214,7 @@ extract_kbc1126ec() [ -f ec.bin ] || err "extract_kbc1126_ec ${board}: can't extract" "${kbc1126_ec_dump}" ec.bin || \ err "extract_kbc1126_ec ${board}: can't extract ecfw1/2.bin" - ) + ) || err "can't extract kbc1126 ec firmware" ec_ex="y" for i in 1 2; do [ -f "${appdir}/ec.bin.fw${i}" ] || ec_ex="n" @@ -239,7 +239,7 @@ extract_e6400vga() "${e6400_unpack}" bios.bin || printf "TODO: fix dell extract util\n" [ -f "${E6400_VGA_romname}" ] || \ err "extract_e6400vga: can't extract vga rom from bios.bin" - ) + ) || err "can't extract e6400 vga rom" cp "${appdir}/${E6400_VGA_romname}" "${_dest}" || \ err "extract_e6400vga ${board}: can't copy vga rom to ${_dest}" } -- cgit v1.2.1