From f22ffc73b1246e6a3f441817d18f4fa9a551e349 Mon Sep 17 00:00:00 2001 From: merakor Date: Fri, 1 May 2020 20:12:32 +0000 Subject: [PATCH] kiss: prettier plaintext message output FossilOrigin-Name: 982667cccf05481317a9077871fad492aaa2b997cdfce2e1ec981ca0e9c494d2 --- kiss | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/kiss b/kiss index c4a805a7..e1c108e5 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)