mirror of
https://github.com/obra/superpowers.git
synced 2026-09-02 19:55:41 +00:00
test(diagnosing-superpowers): leak grep covers tests directory too
Claude-Session: https://claude.ai/code/session_01DyaGKhTXvHNs2JgPhDktz7
This commit is contained in:
@@ -106,11 +106,11 @@ for rel in "${expected_files[@]}"; do
|
|||||||
done
|
done
|
||||||
|
|
||||||
# --- no local paths or names in shipped files ----------------------------
|
# --- 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
|
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
|
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/^/ /'
|
printf '%s\n' "$leaks" | head -10 | sed 's/^/ /'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user