aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-07-17 22:49:29 +0000
committermerakor <cem@ckyln.com>2021-07-17 22:49:29 +0000
commiteb9d73e219325ae09b756144d56686118011fb64 (patch)
tree230f6b082c3eb55a6026393ef7f21a465c30e2a8
parent8e4ef0338bed826f54313fe553231271b4a99618 (diff)
downloadcpt-eb9d73e219325ae09b756144d56686118011fb64.tar.gz
pkg_repository_update: read "MOTD" instead of "motd"
FossilOrigin-Name: 65495408d5b97bdbac9317a940991dddec78d737abef168d366b1245e495c33b
-rw-r--r--src/cpt-lib.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpt-lib.in b/src/cpt-lib.in
index 1e4062a..4675d19 100644
--- a/src/cpt-lib.in
+++ b/src/cpt-lib.in
@@ -1641,12 +1641,12 @@ 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" ] || {
+ ! [ -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"
+ cat "$repo_root/MOTD"
printf '\n%s\n' "$(_multiply_char '=' 60)"
}
}