diff --git a/pkg/util/confirm.go b/pkg/util/confirm.go index 101d5435..5137ba8a 100644 --- a/pkg/util/confirm.go +++ b/pkg/util/confirm.go @@ -10,13 +10,13 @@ import ( // Confirm shows the argument prompt to the user and returns a boolean based on whether or not // the user confirms that it's ok to continue. func Confirm(prompt string, skip bool) (bool, error) { - fmt.Printf("%s (yes/no) ", prompt) - if skip { log.Infof("Automatically answering yes because skip is set to true") return true, nil } + fmt.Printf("%s (yes/no) ", prompt) + var response string _, err := fmt.Scanln(&response) if err != nil {