From 11fc49b491bfc45a772f48315e711b70338ebb32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miloslav=20Trma=C4=8D?= Date: Mon, 24 Mar 2025 19:36:01 +0100 Subject: [PATCH] Rely on golangci-lint exit code instead of expecting empty output MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miloslav Trmač --- hack/validate-lint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hack/validate-lint.sh b/hack/validate-lint.sh index d3dc7d11..e1e339b2 100755 --- a/hack/validate-lint.sh +++ b/hack/validate-lint.sh @@ -2,7 +2,7 @@ errors=$($GOBIN/golangci-lint run --build-tags "${BUILDTAGS}" 2>&1) -if [ -z "$errors" ]; then +if [ "$?" -eq 0 ]; then echo 'Congratulations! All Go source files have been linted.' else {