test(diagnosing-superpowers): leak grep covers tests directory too

Claude-Session: https://claude.ai/code/session_01DyaGKhTXvHNs2JgPhDktz7
This commit is contained in:
Jesse Vincent
2026-08-28 10:24:20 -07:00
parent 83269b3086
commit aad834ae75
@@ -106,11 +106,11 @@ for rel in "${expected_files[@]}"; do
done
# --- no local paths or names in shipped files ----------------------------
leaks="$(grep -rn -E '/Users/|/home/|jesse' "$SKILL_DIR" 2>/dev/null || true)"
leaks="$(grep -rn -E '/Users/|/home/|jesse' "$SKILL_DIR" "$SCRIPT_DIR" --exclude=test-skill-structure.sh 2>/dev/null || true)"
if [ -z "$leaks" ]; then
pass "no machine-specific paths or names in shipped files"
pass "no machine-specific paths or names in shipped files (skills + tests)"
else
fail "no machine-specific paths or names in shipped files"
fail "no machine-specific paths or names in shipped files (skills + tests)"
printf '%s\n' "$leaks" | head -10 | sed 's/^/ /'
fi