From 31163f6e96c80a7c732bd52d9dc635b7618f5eb1 Mon Sep 17 00:00:00 2001 From: Matthew Hooker Date: Wed, 1 Feb 2017 19:26:34 -0800 Subject: [PATCH] command/version: don't print extra new line. --- command/version.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/command/version.go b/command/version.go index cd170f2df..4fb07a90f 100644 --- a/command/version.go +++ b/command/version.go @@ -52,18 +52,16 @@ func (c *VersionCommand) Run(args []string) int { // If we have a version check function, then let's check for // the latest version as well. if c.CheckFunc != nil { - // Separate the prior output with a newline - c.Ui.Say("") // Check the latest version info, err := c.CheckFunc() if err != nil { c.Ui.Error(fmt.Sprintf( - "Error checking latest version: %s", err)) + "\nError checking latest version: %s", err)) } if info.Outdated { c.Ui.Say(fmt.Sprintf( - "Your version of Packer is out of date! The latest version\n"+ + "\nYour version of Packer is out of date! The latest version\n"+ "is %s. You can update by downloading from www.packer.io", info.Latest)) }