aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-10-03 10:38:17 +0200
committerElena ``of Valhalla'' Grandi <valhalla@trueelena.org>2021-10-03 10:38:17 +0200
commit926e844ce6c32b0773310fd21dbab6850d4ce010 (patch)
treed55b6ce546f57ebc000bccecfe6fdb39c2324a3b
parent98dc81b3c7bcfaea107f1a31941edfa1e7893699 (diff)
Only act on lesana entries in the git hook
-rwxr-xr-xlesana/data/post-checkout4
1 files 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)