fix main: Exit with kubectl status code

If kubectl fails during a kontemplate run, kontemplate should also
exit with a non-zero status code.

This fixes #43
This commit is contained in:
Vincent Ambo 2017-05-08 14:18:13 +02:00
parent 20ccc33347
commit cb6413bff7
2 changed files with 3 additions and 5 deletions

View file

@ -11,7 +11,7 @@ import (
"gopkg.in/alecthomas/kingpin.v2"
)
const version string = "1.0"
const version string = "1.0.1"
// This variable will be initialised by the Go linker during the builder
var gitHash string
@ -155,7 +155,5 @@ func runKubectlWithResources(c *context.Context, kubectlArgs *[]string, resource
}
stdin.Close()
kubectl.Wait()
return nil
return kubectl.Wait()
}