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

This commit is contained in:
Megan Marsh 2019-08-01 11:31:21 -07:00
parent 0295ea8d73
commit b6f3742425
1 changed files with 1 additions and 1 deletions

View File

@ -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"