From 7eb5c092aa24a1ee58e55b86fde907041dd2a3c5 Mon Sep 17 00:00:00 2001 From: merakor Date: Wed, 3 Nov 2021 11:08:09 +0000 Subject: cpt-install: run 'end-install' hook after package installation is complete FossilOrigin-Name: 477102f4200c7d8c4337e32157e9e43a3596eb70be99b41dc2a51ad21f25f406 --- src/cpt-install | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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' \ -- cgit v1.2.3