From 40f064ae336f125762584be8a6ddd52d7ff1cd01 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Mon, 1 Sep 2025 07:08:47 +0100 Subject: inject/vendor.sh: stricter set + usage set - as soon as possible, for example in the extract_me function. we only turn off error handling when certain error-prone tasks are performed, and mitigations are in place after these commands run to make sure that the result was valid. this is because in some cases, we want certain buggy behaviours to be permitted, with errors handled in a more fine-tuned way, because sh can sometimes be much stricter depending on the implementation; otherwise, we almost always rely on -e -u in most of the build system. this mainly affects the vendorfile insertion logic. Signed-off-by: Leah Rowe --- include/inject.sh | 1 - 1 file changed, 1 deletion(-) (limited to 'include/inject.sh') diff --git a/include/inject.sh b/include/inject.sh index 621ff131..fa46ee94 100644 --- a/include/inject.sh +++ b/include/inject.sh @@ -19,7 +19,6 @@ inject() { remkdir "$tmpromdel" - set +u +e [ $# -lt 1 ] && err "No options specified" eval "`setvars "" nuke new_mac xchanged`" -- cgit v1.2.1