diff --git a/skills/last30days/scripts/test-v1-vs-v2.sh b/skills/last30days/scripts/test-v1-vs-v2.sh index 50f6085..a809362 100755 --- a/skills/last30days/scripts/test-v1-vs-v2.sh +++ b/skills/last30days/scripts/test-v1-vs-v2.sh @@ -6,7 +6,8 @@ set -euo pipefail # using `claude --print` to capture real end-to-end output. SKILL_DIR="$HOME/.claude/skills/last30days" -REPO_DIR="/Users/mvanhorn/last30days-skill" +REPO_DIR="${REPO_DIR:-$(cd "$(dirname "$0")/.." && pwd)}" +CLAUDE="${CLAUDE:-$(command -v claude || echo claude)}" # Safety: always restore V2 SKILL.md on exit/crash cleanup() { @@ -101,7 +102,7 @@ run_version() { # Run claude --print with the skill invocation # No timeout — claude --print exits on its own; kill manually if stuck - if /Users/mvanhorn/.local/bin/claude --print \ + if "$CLAUDE" --print \ "/last30days $query" \ > "$outfile" 2>"$errfile"; then local end_time