bug: bin/disinto init — env_file unbound variable at line 765 #145
Labels
No labels
action
backlog
blocked
bug-report
in-progress
prediction/actioned
prediction/dismissed
prediction/unreviewed
priority
tech-debt
underspecified
vision
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: disinto-admin/disinto#145
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
disinto initfails with:Line 765 uses
$env_fileto writeHUMAN_TOKENto.env, butenv_fileis alocalvariable defined at line 788 (in a later section of the function). The human token code at line 765 was added by #113 but placed beforeenv_fileis declared.Fix
Add
local env_file="${FACTORY_ROOT}/.env"before line 765, or move theenv_filedeclaration (currently at line 788) to earlier in the function — before the human token section.The simplest fix: add this line before the
if grep -qblock at line 765:Or consolidate: ensure
env_fileis declared once at the top ofsetup_forge()function.Affected files
bin/disinto— line ~765,setup_forge()functionAcceptance criteria
disinto init --bare --yescompletes without unbound variable errorHUMAN_TOKENwritten to.envcorrectly