Send non-zero status code when proxy-init command fails (#2064)

* send non-zero status code when the proxy-init command fails

Signed-off-by: Dennis Adjei-Baah <dennis@buoyant.io>
This commit is contained in:
Dennis Adjei-Baah 2019-01-10 15:48:42 -08:00 committed by GitHub
parent 717bdc0796
commit f4b5789825
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -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)
}
}