fix destination pathing so that it doesnt break on windows

This commit is contained in:
Megan Marsh 2019-01-03 16:03:42 -08:00
parent 9a63e8eeb6
commit 5c2da6b816
1 changed files with 1 additions and 1 deletions

View File

@ -172,7 +172,7 @@ func (p *Provisioner) ProvisionUpload(ui packer.Ui, comm packer.Communicator) er
}
if strings.HasSuffix(dst, "/") {
dst = filepath.Join(dst, filepath.Base(src))
dst = dst + filepath.Base(src)
}
// Get a default progress bar