From cb6413bff708551975eda7368595a60a144731af Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Mon, 8 May 2017 14:18:13 +0200 Subject: 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 --- main.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'main.go') diff --git a/main.go b/main.go index 53f4defd8595..0fcf93d66ef6 100644 --- a/main.go +++ b/main.go @@ -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() } -- cgit 1.4.1