chore: tune the public export check
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user