You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by nf...@apache.org on 2020/01/20 08:50:53 UTC

[camel-k] branch master updated: fix: Exiting dev mode returns non zero exit code

This is an automated email from the ASF dual-hosted git repository.

nferraro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel-k.git


The following commit(s) were added to refs/heads/master by this push:
     new a711871  fix: Exiting dev mode returns non zero exit code
a711871 is described below

commit a7118715eef21d50ae4550137bfa0ec508832050
Author: James Netherton <ja...@gmail.com>
AuthorDate: Fri Jan 17 13:37:01 2020 +0000

    fix: Exiting dev mode returns non zero exit code
    
    fixes #1183
---
 pkg/cmd/run.go | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go
index 10fe7df..3df33fa 100644
--- a/pkg/cmd/run.go
+++ b/pkg/cmd/run.go
@@ -189,8 +189,9 @@ func (o *runCmdOptions) run(cmd *cobra.Command, args []string) error {
 			err := DeleteIntegration(o.Context, c, integration.Name, integration.Namespace)
 			if err != nil {
 				fmt.Println(err)
+				os.Exit(1)
 			}
-			os.Exit(1)
+			os.Exit(0)
 		}()
 	}