From 926e844ce6c32b0773310fd21dbab6850d4ce010 Mon Sep 17 00:00:00 2001 From: Elena ``of Valhalla'' Grandi Date: Sun, 3 Oct 2021 10:38:17 +0200 Subject: Only act on lesana entries in the git hook --- lesana/data/post-checkout | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lesana/data/post-checkout b/lesana/data/post-checkout index 9c2c084..54bbc5d 100755 --- a/lesana/data/post-checkout +++ b/lesana/data/post-checkout @@ -14,8 +14,8 @@ else exit 1 fi -for F in $( $diff_cmd | grep "^D" | cut -c 2-) ; do +for F in $( $diff_cmd | grep "^D" | grep "items/.*.yaml" | cut -c 2-) ; do lesana rm $(basename $F .yaml) done -lesana index $( $diff_cmd | grep "^[AM]" | cut -c 2- | xargs) +lesana index $( $diff_cmd | grep "^[AM]" | grep "items/.*.yaml" | cut -c 2- | xargs) -- cgit v1.2.3