From 7f02d9bcad0717808de31dae5b5486779d6f8f9f Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Tue, 6 Jul 2021 22:16:00 +0300 Subject: [PATCH] kiss: remove post-install logging I want to redo this in a less awful way. --- kiss | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/kiss b/kiss index 52ad628..94f420c 100755 --- a/kiss +++ b/kiss @@ -1344,16 +1344,7 @@ pkg_install() { if [ -x "$sys_db/$pkg_name/post-install" ]; then log "$pkg_name" "Running post-install hook" - - hook_output=$("$sys_db/$pkg_name/post-install" 2>&1) - - [ -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 + "$sys_db/$pkg_name/post-install" fi run_hook post-install "$pkg_name" "$sys_db/$pkg_name" @@ -1653,11 +1644,6 @@ args() { "$repo_dir" "$@" ;; esac - - if [ -s "$log_dir/post-install-$time-$pid" ]; then - cat "$log_dir/post-install-$time-$pid" - log "Post-install log stored to $log_dir/post-install-$time-$pid" - fi } create_tmp_dirs() {