From da1fb2ae17b5ca6ce9350010a53831be6cc6a030 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 10 May 2024 14:57:10 +0300 Subject: [PATCH] Makefile: fix lint rules --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index fe33ff9..62b7f18 100644 --- 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