Merge pull request #166 from kbrebanov/kiss-post-install

kiss: Don't create empty post-install log file
This commit is contained in:
dylan 2020-06-21 18:03:27 +03:00 committed by GitHub
commit d541711648
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

8
kiss
View File

@ -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"