From d7d4aed51c17dcc1609af633521ad4e58c58567a Mon Sep 17 00:00:00 2001 From: Adrien Delorme Date: Thu, 16 Aug 2018 18:56:28 +0200 Subject: [PATCH] be even more precise --- common/step_download.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/common/step_download.go b/common/step_download.go index 13f5e75fa..071f2d44f 100644 --- a/common/step_download.go +++ b/common/step_download.go @@ -113,7 +113,11 @@ func (s *StepDownload) Run(_ context.Context, state multistep.StateBag) multiste if finalPath == "" { for i, url := range s.Url { if strings.HasPrefix(url, "file://") { - ui.Message(fmt.Sprintf("Copying or inplace referencing: %s", url)) + if s.Inplace { + ui.Message(fmt.Sprintf("Inplace referencing: %s", url)) + } else { + ui.Message(fmt.Sprintf("Copying: %s", url)) + } } else { ui.Message(fmt.Sprintf("Downloading: %s", url)) }