vendor.sh inject: reset err upon return

Signed-off-by: Leah Rowe <leah@libreboot.org>
master
Leah Rowe 2025-01-02 10:17:39 +00:00
parent 41275d699c
commit 08e86d2218
1 changed files with 3 additions and 0 deletions

View File

@ -340,6 +340,7 @@ fail_inject()
vendor_inject()
{
_olderr="$err"
err="fail_inject"
remkdir "$tmpromdel"
@ -363,6 +364,7 @@ vendor_inject()
else
printf "Tarball '%s' (board '%s) doesn't need vendorfiles.\n" \
"$archive" "$board"
err="$_olderr"
return 0
fi
@ -374,6 +376,7 @@ vendor_inject()
"$archive" "$xtype"
[ "$xchanged" = "y" ] && [ "$nukemode" = "nuke" ] && \
printf "!!!WARNING!!! -> Vendor files removed. DO NOT FLASH.\n"
err="$_olderr"
return 0
}