From e421c138594762ecb5811adec1c6340ba69f4b0d Mon Sep 17 00:00:00 2001 From: Adnan Zahir Date: Sat, 14 Nov 2026 19:20:08 +0700 Subject: [PATCH] chore: tune the public export check --- scripts/export-public.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/export-public.sh b/scripts/export-public.sh index 387c3d6..3fa05b5 100755 --- a/scripts/export-public.sh +++ b/scripts/export-public.sh @@ -9,9 +9,9 @@ git -C "$root" diff --quiet HEAD || { echo "commit or stash first" >&2; exit 1; git -C "$root" archive HEAD | tar -x -C "$out" # Deployment-specific and planning material stays in the private repository. rm -rf "$out/tasks" "$out/tests/mbu" "$out/docs/MBU-BACKUP-PARITY.md" "$out/docs/MBU-CUTOVER.md" "$out/floorplan" "$out/graft" -if grep -rIlE "mbugroup|backup\.mbu|hafizh|senkensha\.space|teleport" "$out" --exclude-dir=node_modules >/dev/null; then +if grep -rIlE "mbugroup|backup\.mbu|hafizh|senkensha\.space" "$out" --exclude-dir=node_modules --exclude=export-public.sh >/dev/null; then echo "private references remain:" >&2 - grep -rIlE "mbugroup|backup\.mbu|hafizh|senkensha\.space|teleport" "$out" --exclude-dir=node_modules >&2 + grep -rIlE "mbugroup|backup\.mbu|hafizh|senkensha\.space" "$out" --exclude-dir=node_modules --exclude=export-public.sh >&2 exit 1 fi echo "clean tree at $out; review it, then: git init && git add -A && git commit"