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 <leah@libreboot.org>master
parent
147e034341
commit
3b92b7b723
|
@ -165,7 +165,7 @@ extract_deguard_me()
|
||||||
(
|
(
|
||||||
cd "$1/disreguard" || $err "Cannot cd to '$1/disreguard'"
|
cd "$1/disreguard" || $err "Cannot cd to '$1/disreguard'"
|
||||||
x_ ./RUNME.sh
|
x_ ./RUNME.sh
|
||||||
)
|
) || $err "$1/disreguard: RUNME.sh returned error status"
|
||||||
"$mecleaner" --whitelist MFS --truncate "$1/disreguard/me.bin" || \
|
"$mecleaner" --whitelist MFS --truncate "$1/disreguard/me.bin" || \
|
||||||
$err "extract_intel_me: Can't truncate disreguarded ME"
|
$err "extract_intel_me: Can't truncate disreguarded ME"
|
||||||
cp "$cdir/disreguard/me.bin" "$2" || \
|
cp "$cdir/disreguard/me.bin" "$2" || \
|
||||||
|
|
Loading…
Reference in New Issue