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:
parent
aebab49285
commit
f8f5a25fe2
@ -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.'
|
||||
|
Loading…
Reference in New Issue
Block a user