From 80e5bd2dea5fb1c1903b69e2c8e11e16685ae4a2 Mon Sep 17 00:00:00 2001 From: Alessio Treglia Date: Sun, 16 Jun 2019 11:19:55 +0200 Subject: [PATCH] Take empty input as yes answer Closes: #4564 --- client/input/input.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/input/input.go b/client/input/input.go index def5d146c80a..4549493b26ec 100644 --- a/client/input/input.go +++ b/client/input/input.go @@ -98,7 +98,7 @@ func GetConfirmation(prompt string, buf *bufio.Reader) (bool, error) { } response = strings.ToLower(strings.TrimSpace(response)) - if response == "y" || response == "yes" { + if response == "y" || response == "yes" || response == "" { return true, nil } else if response == "n" || response == "no" { return false, nil