From e755da5e10aa8af57388cd070d2b16c078b703e2 Mon Sep 17 00:00:00 2001 From: merakor Date: Tue, 22 Jun 2021 08:57:17 +0000 Subject: pkg_fetch(): Print motd files on the repository root FossilOrigin-Name: 23452c0f1626644a29d551363d00f89bdd0f100447603ae81f6f26aa61b5f195 --- src/cpt-lib.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cpt-lib.in b/src/cpt-lib.in index d17954b..3858d82 100644 --- a/src/cpt-lib.in +++ b/src/cpt-lib.in @@ -1852,6 +1852,10 @@ pkg_fetch() { cd "$repo_root" "pkg_vcs_pull_$repo_type" + + # 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" } done -- cgit v1.2.3