forked from kiss-community/kiss
kiss: Don't create empty post-install log file
This commit is contained in:
parent
757795ebbc
commit
f7b85cf400
4
kiss
4
kiss
@ -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"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user