Skip to content

Commit

Permalink
Send non-zero status code when proxy-init command fails (#2064)
Browse files Browse the repository at this point in the history
* send non-zero status code when the proxy-init command fails

Signed-off-by: Dennis Adjei-Baah <[email protected]>
  • Loading branch information
Dennis Adjei-Baah authored Jan 10, 2019
1 parent 717bdc0 commit f4b5789
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions proxy-init/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
package main

import "github.com/linkerd/linkerd2/proxy-init/cmd"
import (
"os"

"github.com/linkerd/linkerd2/proxy-init/cmd"
)

func main() {
cmd.NewRootCmd().Execute()
if err := cmd.NewRootCmd().Execute(); err != nil {
os.Exit(1)
}
}

0 comments on commit f4b5789

Please sign in to comment.