text/recog: don’t try to cog the caddyfmt script
- ID
bd93ebf- date
2026-04-20 04:31:29+00:00- author
Alex Chan <alex@alexwlchan.net>- parent
4fb0bd2- message
text/recog: don't try to cog the `caddyfmt` script- changed files
1 file, 4 additions
Changed files
text/recog (685) → text/recog (754)
diff --git a/text/recog b/text/recog
index 86c8cca..7fb1053 100755
--- a/text/recog
+++ b/text/recog
@@ -24,6 +24,10 @@ files=$(
-exec grep -rIl "\[\[\[cog" {} + | sort)
for f in $files; do
+ if [[ $(basename "$f") == "caddyfmt" ]]; then
+ continue
+ fi
+
if [[ "$action" == "check_only" ]]; then
cog -c --check "$f"
else