diff options
author | merakor <cem@ckyln.com> | 2021-06-22 08:57:17 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-06-22 08:57:17 +0000 |
commit | e755da5e10aa8af57388cd070d2b16c078b703e2 (patch) | |
tree | 4cada6ac284a066568b6b4ade39df02bb330612e | |
parent | 9a8c9acf6210eb35f93c04ab02be701e4dcb4b49 (diff) | |
download | cpt-e755da5e10aa8af57388cd070d2b16c078b703e2.tar.gz |
pkg_fetch(): Print motd files on the repository root
FossilOrigin-Name: 23452c0f1626644a29d551363d00f89bdd0f100447603ae81f6f26aa61b5f195
-rw-r--r-- | src/cpt-lib.in | 4 |
1 files changed, 4 insertions, 0 deletions
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 |