aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-01 20:12:32 +0000
committermerakor <cem@ckyln.com>2020-05-01 20:12:32 +0000
commitf22ffc73b1246e6a3f441817d18f4fa9a551e349 (patch)
treecb26a32106e52eda27c270520117ad59df19ee69 /kiss
parent3781ac31a9d370daedbd4f000c6d27c3a9926820 (diff)
downloadcpt-1.16.0.tar.gz
kiss: prettier plaintext message output1.16.0
FossilOrigin-Name: 982667cccf05481317a9077871fad492aaa2b997cdfce2e1ec981ca0e9c494d2
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss14
1 files changed, 13 insertions, 1 deletions
diff --git a/kiss b/kiss
index c4a805a..e1c108e 100755
--- a/kiss
+++ b/kiss
@@ -1340,7 +1340,19 @@ args() {
pkg_order "$@"
for pkg in $order; do pkg_install "$pkg"; done
- for pkg in $order; do cat "$sys_db/$pkg/message" 2>/dev/null ||:; done
+
+ # After installation is complete, show a list
+ # of messages from packages.
+ log "Retrieving message queue"
+ for pkg in $order; do
+ [ -f "$sys_db/$pkg/message" ] && {
+ printf '%s\n\033[1m%s\033[m\n%s\n\n' \
+ "==============================" \
+ "$pkg" \
+ "==============================" >&2
+ cat "$sys_db/$pkg/message" >&2
+ }
+ done
;;
r|remove)