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 <jamesnether...@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)
                }()
        }
 

Reply via email to