mirror of
https://github.com/hashicorp/packer.git
synced 2026-09-23 08:21:43 -04:00
check container os, not host os, when creating container dir default
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user