forked from kiss-community/kiss
kiss: Fixes to post-install output.
This commit is contained in:
parent
c7b32e6531
commit
b1bd880c07
8
kiss
8
kiss
@ -1157,8 +1157,12 @@ pkg_install() {
|
|||||||
|
|
||||||
hook_output=$("$sys_db/$pkg_name/post-install" 2>&1)
|
hook_output=$("$sys_db/$pkg_name/post-install" 2>&1)
|
||||||
|
|
||||||
[ -z "$hook_output" ] ||
|
[ -z "$hook_output" ] || {
|
||||||
printf '=> %s post-install log\n%s\n' "$pkg_name" "$hook_output" |
|
log "$pkg_name" "Running post-install hook" 2>&1
|
||||||
|
printf '%s\n' "$hook_output"
|
||||||
|
} |
|
||||||
|
|
||||||
|
# 'tee' is used as we would still like to display 'stderr'
|
||||||
tee -a "$log_dir/post-install-$time-$pid" >/dev/null
|
tee -a "$log_dir/post-install-$time-$pid" >/dev/null
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user