mirror of
https://github.com/containers/skopeo.git
synced 2025-04-27 19:05:32 +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:
parent
b78fa41e42
commit
11fc49b491
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
errors=$($GOBIN/golangci-lint run --build-tags "${BUILDTAGS}" 2>&1)
|
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.'
|
echo 'Congratulations! All Go source files have been linted.'
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user