From fa076180e8d2ce499923258f8072005d3e61b29a Mon Sep 17 00:00:00 2001 From: Zeliha KONAK Date: Wed, 18 Dec 2024 16:15:09 +0100 Subject: [PATCH] Add fail if sha256sum does not present Without this, there is an incomprehensible error if sha256sum does not present. This fixes by determining the reason for error sha256sum not present --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index a565ec4a..3f7a355e 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ $(HACKDIR): mkdir -p $(HACKDIR) bootstrap-tools: $(HACKDIR) + if ! command -v sha256sum &> /dev/null; then echo "sha256sum could not be found"; exit 1; fi command -v $(HACKDIR)/goreleaser || VERSION=v2.5.0 TMPDIR=$(HACKDIR) bash hack/goreleaser-install.sh command -v staticcheck || go install honnef.co/go/tools/cmd/staticcheck@latest chmod +x $(HACKDIR)/goreleaser