erge branch 'master' of https://github.com/mitchellh/packer
This commit is contained in:
commit
439f85b177
5
main.go
5
main.go
|
@ -112,7 +112,10 @@ func wrappedMain() int {
|
||||||
log.Printf("Built with Go Version: %s", runtime.Version())
|
log.Printf("Built with Go Version: %s", runtime.Version())
|
||||||
|
|
||||||
// Prepare stdin for plugin usage by switching it to a pipe
|
// Prepare stdin for plugin usage by switching it to a pipe
|
||||||
setupStdin()
|
// But do not switch to pipe in plugin
|
||||||
|
if os.Getenv(plugin.MagicCookieKey) != plugin.MagicCookieValue {
|
||||||
|
setupStdin()
|
||||||
|
}
|
||||||
|
|
||||||
config, err := loadConfig()
|
config, err := loadConfig()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in New Issue