We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d523079 + 97d2beb commit c10ecc4Copy full SHA for c10ecc4
1 file changed
cmd/state-installer/installer.go
@@ -61,7 +61,8 @@ func (i *Installer) Install() (rerr error) {
61
if i.Params.force {
62
prompter.SetForce(true)
63
}
64
- confirm, err := prompter.Confirm("", locale.T("installer_prompt_is_admin"), ptr.To(false), ptr.To(true))
+ defaultChoice := i.Params.nonInteractive
65
+ confirm, err := prompter.Confirm("", locale.T("installer_prompt_is_admin"), &defaultChoice, ptr.To(true))
66
if err != nil {
67
return errs.Wrap(err, "Not confirmed")
68
0 commit comments