From 5c2da6b81688e24e7b78476bf97bbbd5d0558850 Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Thu, 3 Jan 2019 16:03:42 -0800 Subject: [PATCH] fix destination pathing so that it doesnt break on windows --- provisioner/file/provisioner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/provisioner/file/provisioner.go b/provisioner/file/provisioner.go index 6787a20cb..72a5018b9 100644 --- a/provisioner/file/provisioner.go +++ b/provisioner/file/provisioner.go @@ -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