From f7b85cf400a00b7dc55354f02a16c2d39878c1d2 Mon Sep 17 00:00:00 2001 From: Kevin Brebanov Date: Sun, 21 Jun 2020 10:57:11 -0400 Subject: [PATCH] kiss: Don't create empty post-install log file --- kiss | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/kiss b/kiss index e497e7a..6f5bfc9 100755 --- a/kiss +++ b/kiss @@ -1149,9 +1149,11 @@ pkg_install() { trap pkg_clean EXIT INT if [ -x "$sys_db/$pkg_name/post-install" ]; then - log "$pkg_name" "post-install log" - "$sys_db/$pkg_name/post-install" - fi 2>&1 | tee -a "$log_dir/post-install-$time-$pid" >/dev/null + { + log "$pkg_name" "post-install log" + "$sys_db/$pkg_name/post-install" + } 2>&1 | tee -a "$log_dir/post-install-$time-$pid" + fi run_hook post-install "$pkg_name" "$sys_db/$pkg_name"