diff options
author | merakor <cem@ckyln.com> | 2021-11-03 11:08:09 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-11-03 11:08:09 +0000 |
commit | 7eb5c092aa24a1ee58e55b86fde907041dd2a3c5 (patch) | |
tree | 33099dc5a42cc3b38941fa166b3cb521338558ef /src/cpt-install | |
parent | 0be5b545860f71414ede2ae7f842bb4aacf992ab (diff) | |
download | cpt-7eb5c092aa24a1ee58e55b86fde907041dd2a3c5.tar.gz |
cpt-install: run 'end-install' hook after package installation is complete
FossilOrigin-Name: 477102f4200c7d8c4337e32157e9e43a3596eb70be99b41dc2a51ad21f25f406
Diffstat (limited to 'src/cpt-install')
-rwxr-xr-x | src/cpt-install | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cpt-install b/src/cpt-install index 44842a3..07c7491 100755 --- a/src/cpt-install +++ b/src/cpt-install @@ -27,6 +27,10 @@ for pkg in $order; do pkg_install "$pkg"; done log "Retrieving post-installation message queue" unset msg +# After all the installations are finished, run an end-install hook. There may +# be some things that we may want to run, but not per package. +run_hook end-install "" "$CPT_ROOT" root + for pkg in $order; do [ -f "$sys_db/$pkg/message" ] && { printf '\033[1m%s\n%s\n%s\033[m\n\n' \ |