Skip to content

Commit

Permalink
kiss: prettier plaintext message output
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 982667cccf05481317a9077871fad492aaa2b997cdfce2e1ec981ca0e9c494d2
  • Loading branch information
cemkeylan committed May 1, 2020
1 parent 3781ac3 commit f22ffc7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion kiss
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f22ffc7

Please sign in to comment.