[PATCH 20/48] klp-build: Don't use errexit

From: Josh Poimboeuf

Date: Thu Apr 23 2026 - 00:08:55 EST


The errtrace option (combined with the ERR trap) already serves the same
function (and more) as errexit, so errexit is redundant. And it has
more pitfalls. Remove it.

Signed-off-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>
---
scripts/livepatch/klp-build | 1 -
1 file changed, 1 deletion(-)

diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build
index 2b8b3c338a87..e2f0eb8fdc7f 100755
--- a/scripts/livepatch/klp-build
+++ b/scripts/livepatch/klp-build
@@ -11,7 +11,6 @@ if (( BASH_VERSINFO[0] < 4 || \
exit 1
fi

-set -o errexit
set -o errtrace
set -o pipefail
set -o nounset
--
2.53.0