aboutsummaryrefslogtreecommitdiff
path: root/src/cpt-lib.in
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpt-lib.in')
-rw-r--r--src/cpt-lib.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 245aa21..6bb12bd 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -1618,7 +1618,13 @@ pkg_repository_update() {
# Repositories can contain a "Message of the Day" file in order to
# relay important information to their users.
- ! [ -r "$repo_root/motd" ] || cat "$repo_root/motd"
+ ! [ -r "$repo_root/motd" ] || {
+ printf '%s\n%s\n%s\n\n' \
+ "$(_multiply_char '=' 60)" \
+ "Message of the Day [$PWD]" \
+ "$(_multiply_char '=' 60)"
+ cat "$repo_root/motd"
+ }
}
}