mirror of
https://github.com/containers/skopeo.git
synced 2025-09-09 02:29:49 +00:00
Rely on golangci-lint exit code instead of expecting empty output
Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
Reference in New Issue
Block a user