summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)