fix: bug: bin/disinto init — env_file unbound variable at line 765 (#145)
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-02 11:58:03 +00:00
parent 39e4b73ea0
commit a3bd8eaac3

View file

@ -744,6 +744,7 @@ setup_forge() {
# Get or create human user token
local human_token
local env_file="${FACTORY_ROOT}/.env"
if curl -sf --max-time 5 "${forge_url}/api/v1/users/${human_user}" >/dev/null 2>&1; then
human_token=$(curl -sf -X POST \
-u "${human_user}:${human_pass}" \
@ -785,7 +786,6 @@ setup_forge() {
[predictor-bot]="FORGE_PREDICTOR_TOKEN"
)
local env_file="${FACTORY_ROOT}/.env"
local bot_user bot_pass token token_var
for bot_user in dev-bot review-bot planner-bot gardener-bot vault-bot supervisor-bot predictor-bot architect-bot; do