From b1bd880c07fa22f38caa7d04cc775e4c45998bc5 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Fri, 24 Jul 2020 02:03:36 +0300 Subject: [PATCH] kiss: Fixes to post-install output. --- kiss | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index 5a800c8..42b52b0 100755 --- a/kiss +++ b/kiss @@ -1157,9 +1157,13 @@ pkg_install() { hook_output=$("$sys_db/$pkg_name/post-install" 2>&1) - [ -z "$hook_output" ] || - printf '=> %s post-install log\n%s\n' "$pkg_name" "$hook_output" | - tee -a "$log_dir/post-install-$time-$pid" >/dev/null + [ -z "$hook_output" ] || { + log "$pkg_name" "Running post-install hook" 2>&1 + printf '%s\n' "$hook_output" + } | + + # 'tee' is used as we would still like to display 'stderr' + tee -a "$log_dir/post-install-$time-$pid" >/dev/null fi run_hook post-install "$pkg_name" "$sys_db/$pkg_name"