Commit 17188f07 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

Get packer compiling again

parent cbab761a
......@@ -21,10 +21,10 @@ func main() {
envConfig := packer.DefaultEnvironmentConfig()
envConfig.Commands = commandKeys
envConfig.CommandFunc = func(n string) packer.Command {
envConfig.CommandFunc = func(n string) (packer.Command, error) {
commandBin, ok := commands[n]
if !ok {
return nil
return nil, nil
}
return plugin.Command(exec.Command(commandBin))
......@@ -36,5 +36,6 @@ func main() {
os.Exit(1)
}
os.Exit(env.Cli(os.Args[1:]))
exitCode, _ := env.Cli(os.Args[1:])
os.Exit(exitCode)
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment