check container os, not host os, when creating container dir default

pull/7939/head
Megan Marsh 7 years ago
parent 0295ea8d73
commit b6f3742425

@ -125,7 +125,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
}
if c.ContainerDir == "" {
if runtime.GOOS == "windows" {
if c.WindowsContainer {
c.ContainerDir = "c:/packer-files"
} else {
c.ContainerDir = "/packer-files"

Loading…
Cancel
Save