1
0
mirror of https://codeberg.org/kiss-community/kiss synced 2024-12-25 08:30:05 -07:00

kiss: add pre/post-update hooks. See #234

This commit is contained in:
Dylan Araps 2021-07-14 21:13:53 +03:00
parent 4ebbfc094f
commit cd242f6d23
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

4
kiss
View File

@ -1509,6 +1509,8 @@ pkg_update() {
contains "$repos" "$PWD" || {
repos="$repos $PWD "
run_hook pre-update "$PWD"
# Display a tick if signing is enabled for this repository.
case $(git config merge.verifySignatures) in
true) log "$PWD" "[signed] " ;;
@ -1537,6 +1539,8 @@ pkg_update() {
as_root git pull
as_root git submodule update --remote --init -f
fi
run_hook post-update "$PWD"
}
done