cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit 253ac668d946b599fdaf30f6cc1f32f289c5ccd7
parent e2372b72836cbe366637823a366dbfeea1fa1c6e
Author: Cem Keylan <cem@ckyln.com>
Date:   Fri,  1 May 2020 23:12:33 +0300

kiss: prettier plaintext message output

Diffstat:
Mkiss | 14+++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)

diff --git 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)