fix: Resolve REPO_ROOT in refactor.sh to actual repo root

Same bug as improve.sh — was cd'ing into the skills directory
instead of the repo root.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
B 2026-02-09 16:13:58 +00:00
parent 8a7317d749
commit 5460cd6e1d

View file

@ -6,7 +6,8 @@ set -eo pipefail
# Spawns a Claude Code agent team to maintain and improve the spawn codebase
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "${SCRIPT_DIR}"
REPO_ROOT="$(cd "${SCRIPT_DIR}/../../.." && pwd)"
cd "${REPO_ROOT}"
LOG_FILE="/home/sprite/spawn/.docs/refactor.log"
TEAM_NAME="spawn-refactor"
@ -19,7 +20,7 @@ log() {
}
log "=== Starting Refactoring Cycle ==="
log "Working directory: ${SCRIPT_DIR}"
log "Working directory: ${REPO_ROOT}"
log "Team name: ${TEAM_NAME}"
log "Log file: ${LOG_FILE}"