1
0
mirror of https://github.com/containers/skopeo.git synced 2025-05-04 05:56:36 +00:00

Actually fail if (go vet) fails

The errors are printed on stderr, so read that.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
This commit is contained in:
Miloslav Trmač 2023-04-05 20:37:48 +02:00
parent aebab49285
commit f8f5a25fe2

View File

@ -1,6 +1,6 @@
#!/bin/bash
errors=$(go vet -tags="${BUILDTAGS}" ./...)
errors=$(go vet -tags="${BUILDTAGS}" ./... 2>&1)
if [ -z "$errors" ]; then
echo 'Congratulations! All Go source files have been vetted.'