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
This commit is contained in:
Dylan Araps 2021-08-17 06:47:37 +03:00
parent cb98a8860c
commit 27d597138e
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

2
kiss
View File

@ -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