From b6869bc8a69de2c7d1decc124cb4969b5b016b2b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 27 Sep 2020 09:10:05 +0300 Subject: [PATCH] kiss: unsquish --- kiss | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/kiss b/kiss index 562695d..e45a87a 100755 --- a/kiss +++ b/kiss @@ -672,13 +672,15 @@ pkg_build() { # Call the build script, log the output to the terminal and to a file. # There's no PIPEFAIL in POSIX shelll so we must resort to tricks like # killing the script ourselves. - { "$repo_dir/build" "$pkg_dir/$pkg" "$build_version" 2>&1 || { - log "$pkg" "build failed" - log "$pkg" "log stored to $log_dir/$pkg/$date-$pid" - run_user_hook build-fail "$pkg" "$pkg_dir/$pkg" - pkg_clean - kill 0 - } } | tee "$log_dir/$pkg/$date-$pid" + { + "$repo_dir/build" "$pkg_dir/$pkg" "$build_version" 2>&1 || { + log "$pkg" "build failed" + log "$pkg" "log stored to $log_dir/$pkg/$date-$pid" + run_user_hook build-fail "$pkg" "$pkg_dir/$pkg" + pkg_clean + kill 0 + } + } | tee "$log_dir/$pkg/$date-$pid" # Delete the log file if the build succeeded to prevent the directory # from filling very quickly with useless logs.