Don’t touch anything in the .git directory when running cog
- ID
04c2fd6- date
2024-01-11 09:43:14+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
a5bea82- message
Don't touch anything in the `.git` directory when running cog- changed files
1 file, 2 additions, 1 deletion
Changed files
text/recog (659) → text/recog (685)
diff --git a/text/recog b/text/recog
index 6fcd32e..86c8cca 100755
--- a/text/recog
+++ b/text/recog
@@ -20,7 +20,8 @@ fi
# -I = ignore binary files
#
files=$(
- find . -type f -not -path "./.venv/*" -exec grep -rIl "\[\[\[cog" {} + | sort)
+ find . -type f -not -path "./.venv/*" -not -path "./.git/*" \
+ -exec grep -rIl "\[\[\[cog" {} + | sort)
for f in $files; do
if [[ "$action" == "check_only" ]]; then