kiss: add back repo update message support (#99)

A file called "MOTD" in each repo in KISS_PATH will be printed during `kiss u`.
As discussed in kiss-community/community#1295.

Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/99
This commit is contained in:
phoebos 2022-10-18 16:30:26 +02:00
parent b748b87148
commit 9c72484a62

5
kiss
View File

@ -1751,6 +1751,11 @@ pkg_update_repo() {
# arg1: post-update
# env: PWD is path to repository
run_hook post-update
[ ! -r MOTD ] || {
log "$PWD" "Printing MOTD"
cat MOTD
}
}
}