From 633e06a7c73d086af17e90928b52b4d746eb7ae0 Mon Sep 17 00:00:00 2001 From: zach rice Date: Fri, 29 Mar 2019 18:39:52 -0500 Subject: [PATCH] updating travis --- Makefile | 2 +- main.go | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 32c33f89..4e4e1101 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ test: go get golang.org/x/lint/golint go fmt golint - go test --race --cover -run=Test$ + go test --race --cover github.com/zricethezav/gitleaks/src deploy: @echo "$(DOCKER_PASSWORD)" | docker login -u "$(DOCKER_USERNAME)" --password-stdin docker build -f Dockerfile -t $(REPO):$(TAG) . diff --git a/main.go b/main.go index d00a27f3..b02e52d5 100644 --- a/main.go +++ b/main.go @@ -10,7 +10,8 @@ import ( func main() { report, err := gitleaks.Run(gitleaks.ParseOpts()) if err != nil { - log.Fatal(err) + log.Error(err) + os.Exit(gitleaks.ErrExit) } if len(report.Leaks) != 0 {