make reasonable tempfile default on windows

This commit is contained in:
Megan Marsh 2018-08-24 09:44:50 -07:00
parent fa99f931b7
commit f5355a0693
1 changed files with 3 additions and 0 deletions

View File

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