Skip to main content

Ignore binary files in recog

ID
71011ac
date
2024-01-09 20:27:34+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
30e394a
message
Ignore binary files in `recog`
changed files
1 file, 4 additions, 1 deletion

Changed files

text/recog (618) → text/recog (659)

diff --git a/text/recog b/text/recog
index e46cdc9..6fcd32e 100755
--- a/text/recog
+++ b/text/recog
@@ -16,8 +16,11 @@ else
   action="apply_changes"
 fi
 
+# Flags:
+#   -I = ignore binary files
+#
 files=$(
-  find . -type f -not -path "./.venv/*" -exec grep -rl "\[\[\[cog" {} + | sort)
+  find . -type f -not -path "./.venv/*" -exec grep -rIl "\[\[\[cog" {} + | sort)
 
 for f in $files; do
   if [[ "$action" == "check_only" ]]; then