From 28ccc9797aca36b1a4b660ec51a69f41a099cc7f Mon Sep 17 00:00:00 2001 From: Chris Cummer Date: Sun, 17 Feb 2019 12:32:42 -0800 Subject: [PATCH] Display message if wtf cannot be found after installation --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index e9d71c6c..c3f433fe 100644 --- a/Makefile +++ b/Makefile @@ -23,9 +23,9 @@ contrib_check: npx all-contributors-cli check install: - go clean - go install -ldflags="-s -w -X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)" - which wtf + @go clean + @go install -ldflags="-s -w -X main.version=$(shell git describe --always --abbrev=6) -X main.date=$(shell date +%FT%T%z)" + @which wtf || echo "Could not find wtf in PATH" && exit 0 lint: structcheck ./...