be even more precise

This commit is contained in:
Adrien Delorme 2018-08-16 18:56:28 +02:00
parent 2b3ea29970
commit d7d4aed51c
1 changed files with 5 additions and 1 deletions

View File

@ -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))
}