mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-11-04 14:05:41 -07:00
kiss: Don't create empty post-install log file
This commit is contained in:
parent
757795ebbc
commit
f7b85cf400
8
kiss
8
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"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user