install: replace blanket --yes with explicit --yes-sudo and --yes-delete-stale; no-TTY defaults to decline #204
Labels
No labels
breaking
bug
documentation
enhancement
epic
good first issue
help wanted
refactoring
resolution/duplicate
resolution/invalid
resolution/wontfix
security
severity/critical
severity/high
severity/low
severity/medium
status/abandoned
status/blocked
status/needs-decision
status/needs-info
status/needs-verification
testing
upstream
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
sixfold-space/madtea#204
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?
Follow-up to #162. The narrated plan prints "Mode: non-interactive (--yes or no TTY); steps run without prompting" - a run with no TTY gets the same auto-confirm as an explicit --yes. On a host with passwordless sudo that makes an accidental scripted invocation fully silent: it escalates, replaces /usr/local/bin/madtea, and the stale-binary sweep deletes other copies, all before anyone sees a prompt. I hit exactly this: a scripted run replaced a production install and swept a go-install copy with zero interaction.
No TTY should mean "cannot consent", not "consents to everything". The dangerous steps are the ones that touch files outside the invoking user's own directories.
Proposal (decided): replace the blanket --yes with one explicit flag per consent. install has exactly two consent prompts, so:
Acceptance criteria: