summaryrefslogtreecommitdiff
path: root/include/vendor.sh
diff options
context:
space:
mode:
Diffstat (limited to 'include/vendor.sh')
-rw-r--r--include/vendor.sh3
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
}