Skip to content

Commit

Permalink
kiss: fix displaying post-installation messages
Browse files Browse the repository at this point in the history
FossilOrigin-Name: 6647f22002b5898b21f8eb945efa80321d9c9b3414b7956d85202edfb7d1cae2
  • Loading branch information
cemkeylan committed May 2, 2020
1 parent c55899c commit b5ea7cd
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions kiss
Original file line number Diff line number Diff line change
Expand Up @@ -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
;;

Expand Down

0 comments on commit b5ea7cd

Please sign in to comment.