Merge pull request #6626 from hashicorp/fix_6620

make reasonable tempfile default on windows
This commit is contained in:
Megan Marsh 2018-08-27 09:43:04 -07:00 committed by GitHub
commit 8309f36176
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -94,6 +94,9 @@ func Validate(config *Config) error {
"{{.Script}}",
}
}
if len(config.TempfileExtension) == 0 {
config.TempfileExtension = ".cmd"
}
} else {
if config.InlineShebang == "" {
config.InlineShebang = "/bin/sh -e"