diff --git a/cmd/prompt/prompt.go b/cmd/prompt/prompt.go index 87379f5eb6..49d72cf6d9 100644 --- a/cmd/prompt/prompt.go +++ b/cmd/prompt/prompt.go @@ -98,5 +98,8 @@ func (u Pipe) Confirm(message string, defaultValue bool) (bool, error) { _, _ = fmt.Fprint(u.stdout, message) var answer string _, _ = fmt.Fscanln(u.stdin, &answer) + if answer == "" { + return defaultValue, nil + } return utils.StringToBool(answer), nil }