fix: fix: lib/env.sh crashes with USER unbound variable in agent container (#229)
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/pr/ci Pipeline was successful

This commit is contained in:
Agent 2026-04-05 15:59:24 +00:00
parent d191b54482
commit 31449cd401

View file

@ -71,6 +71,9 @@ PROJECT_REPO_ROOT=/home/agent/repos/${pname}
log "Agent container starting" log "Agent container starting"
# Set USER for scripts that source lib/env.sh (e.g., OPS_REPO_ROOT default)
export USER=agent
# Verify Claude CLI is available (expected via volume mount from host). # Verify Claude CLI is available (expected via volume mount from host).
if ! command -v claude &>/dev/null; then if ! command -v claude &>/dev/null; then
log "FATAL: claude CLI not found in PATH." log "FATAL: claude CLI not found in PATH."