From 17188f078d4e7186bb1d9128c2a96164da77508b Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Tue, 7 May 2013 23:09:34 -0700 Subject: [PATCH] Get packer compiling again --- packer.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/packer.go b/packer.go index 7a04d4cce..57cc8bf0e 100644 --- a/packer.go +++ b/packer.go @@ -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) }