diff options
author | Leah Rowe <leah@libreboot.org> | 2025-01-02 10:17:39 +0000 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2025-01-02 10:17:39 +0000 |
commit | 08e86d2218c0804f3628c39c67fa8677cbc75067 (patch) | |
tree | 24922991aa6bc46ad8306f7b99f81a3cb16f7d25 /include/vendor.sh | |
parent | 41275d699ca38307225f950252ce0c446dc5aea8 (diff) |
vendor.sh inject: reset err upon return
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'include/vendor.sh')
-rw-r--r-- | include/vendor.sh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/vendor.sh b/include/vendor.sh index d6306256..29b991cd 100644 --- a/include/vendor.sh +++ b/include/vendor.sh @@ -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 } |