commit da1fb2ae17b5ca6ce9350010a53831be6cc6a030 (tree) parent 8a2713bd3b2e414718cbe3ed6cf23a914a3aa900 Author: Motiejus Jakštys <motiejus@jakstys.lt> Date: Fri, 10 May 2024 14:57:10 +0300 Makefile: fix lint rules Diffstat:
| M | Makefile | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,4 +1,4 @@ -SCRIPTS = $(shell awk '/#!\/bin\/(ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files)) +SCRIPTS = $(shell awk '/#!\/usr\/bin\/env (ba)?sh/&&FNR==1{print FILENAME}' $(shell git ls-files)) GODEPS = $(shell git ls-files '*.go' go.mod go.sum) VSN ?= $(shell git describe --dirty) @@ -14,7 +14,7 @@ test: coverage.out .PHONY: lint lint: go vet ./... - $(shell go env GOPATH)/bin/staticcheck -f stylish ./... + staticcheck -f stylish ./... shellcheck $(SCRIPTS) .INTERMEDIATE: coverage.out