From cd242f6d234598c9ad52d833ae25002dcaa54096 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 14 Jul 2021 21:13:53 +0300 Subject: [PATCH] kiss: add pre/post-update hooks. See #234 --- kiss | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/kiss b/kiss index 9bf9e8f..daef0b8 100755 --- a/kiss +++ b/kiss @@ -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