1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-09-28 12:22:39 -06:00

kiss: Hide post-install output and only log at the end.

This prevents duplicate output and output which will just zoom
past alongside the endless scroll of software compilation.
This commit is contained in:
Dylan Araps 2020-07-18 19:31:36 +03:00
parent d95fc0e299
commit 47190ffc08
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E

4
kiss
View File

@ -1152,10 +1152,10 @@ 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" "Running post-install hook"; {
log "$pkg_name" "post-install log" log "$pkg_name" "post-install log"
"$sys_db/$pkg_name/post-install" "$sys_db/$pkg_name/post-install"
} 2>&1 | tee -a "$log_dir/post-install-$time-$pid" } 2>&1 | tee -a "$log_dir/post-install-$time-$pid" >/dev/null
fi fi
run_hook post-install "$pkg_name" "$sys_db/$pkg_name" run_hook post-install "$pkg_name" "$sys_db/$pkg_name"