From 27d597138e5769cad9875e24886b1f04b73bbe01 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 17 Aug 2021 06:47:37 +0300 Subject: [PATCH] kiss: fix build-fail hook not causing exit This wraps the call in a subshell so the die() call does not exit the script early. Error code is also forced back to 0 so the existing clean up code runs. Closes #260 --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 23df7d1..c3b5341 100755 --- a/kiss +++ b/kiss @@ -1007,7 +1007,7 @@ pkg_build() { # arg1: build-fail # arg2: package name # arg3: path to build directory - run_hook build-fail "$pkg" "$mak_dir/$1" + (run_hook build-fail "$pkg" "$mak_dir/$1") || : pkg_clean kill 0