diff options
author | merakor <cem@ckyln.com> | 2020-05-02 21:24:44 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-05-02 21:24:44 +0000 |
commit | b5ea7cdd9fd30748f7e6dd593aeddc694324698b (patch) | |
tree | 4938bee795357b4f5bbc67b6e3488aedb03543ad | |
parent | c55899c577ca17a3cdac989934aab7ea3a5adb9c (diff) | |
download | cpt-1.16.2.tar.gz |
kiss: fix displaying post-installation messages1.16.2
FossilOrigin-Name: 6647f22002b5898b21f8eb945efa80321d9c9b3414b7956d85202edfb7d1cae2
-rwxr-xr-x | kiss | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -1369,15 +1369,18 @@ args() { # After installation is complete, show a list # of messages from packages. - log "Retrieving message queue" + log "Retrieving post-installation message queue" + unset msg for pkg in $order; do - [ -f "$sys_db/$pkg/message" ] && { + if [ -f "$sys_db/$pkg/message" ]; then printf '%s\n\033[1m%s\033[m\n%s\n\n' \ "==============================" \ "$pkg" \ "==============================" >&2 cat "$sys_db/$pkg/message" >&2 - } + msg=1 + fi + [ "$msg" ] || log "No message in queue" done ;; |