kiss: Don't create empty post-install log file

This commit is contained in:
Kevin Brebanov 2020-06-21 10:57:11 -04:00
parent 757795ebbc
commit f7b85cf400

4
kiss
View File

@ -1149,9 +1149,11 @@ pkg_install() {
trap pkg_clean EXIT INT trap pkg_clean EXIT INT
if [ -x "$sys_db/$pkg_name/post-install" ]; then if [ -x "$sys_db/$pkg_name/post-install" ]; then
{
log "$pkg_name" "post-install log" log "$pkg_name" "post-install log"
"$sys_db/$pkg_name/post-install" "$sys_db/$pkg_name/post-install"
fi 2>&1 | tee -a "$log_dir/post-install-$time-$pid" >/dev/null } 2>&1 | tee -a "$log_dir/post-install-$time-$pid"
fi
run_hook post-install "$pkg_name" "$sys_db/$pkg_name" run_hook post-install "$pkg_name" "$sys_db/$pkg_name"