From 3b92b7b7236268c1a345bfd38e4a21e75b0c0864 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 14 Oct 2024 01:15:44 +0100 Subject: vendor.sh: Handle error status on RUNME.sh The deguard utility is executed within a subshell, and the subshell does not handle error status. This patch fixes that, so that the main shell also exits non-zero. Signed-off-by: Leah Rowe --- include/vendor.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/vendor.sh') diff --git a/include/vendor.sh b/include/vendor.sh index 36fa93d8..03ce9801 100644 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -165,7 +165,7 @@ extract_deguard_me() ( cd "$1/disreguard" || $err "Cannot cd to '$1/disreguard'" x_ ./RUNME.sh - ) + ) || $err "$1/disreguard: RUNME.sh returned error status" "$mecleaner" --whitelist MFS --truncate "$1/disreguard/me.bin" || \ $err "extract_intel_me: Can't truncate disreguarded ME" cp "$cdir/disreguard/me.bin" "$2" || \ -- cgit v1.2.1