From fc1e4e060d5e63f97becee67f2236b6feeaba66c Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Wed, 18 Jan 2017 02:08:16 +0000 Subject: [PATCH] Don't prompt for user input when we're not interactive Signed-off-by: Sven Dowideit --- cmd/control/install.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/control/install.go b/cmd/control/install.go index 82368175..7fbdbda8 100755 --- a/cmd/control/install.go +++ b/cmd/control/install.go @@ -154,7 +154,7 @@ func runInstall(image, installType, cloudConfig, device, kappend string, force, fmt.Printf("Installing from %s\n", image) if !force { - if !yes("Continue") { + if util.IsRunningInTty() && !yes("Continue") { log.Infof("Not continuing with installation due to user not saying 'yes'") os.Exit(1) }