Skip to content

Commit e163031

Browse files
committed
Fail the command on any non-zero value
This check makes more sense and the previous one was copied verbatim from the aws provider provided as reference by Hashicorp
1 parent 8c080e0 commit e163031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GNUmakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ testacc: fmtcheck gomodenv
3535

3636
vet:
3737
@echo "go vet ."
38-
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -eq 1 ]; then \
38+
@go vet $$(go list ./... | grep -v vendor/) ; if [ $$? -ne 0 ]; then \
3939
echo ""; \
4040
echo "Vet found suspicious constructs. Please check the reported constructs"; \
4141
echo "and fix them if necessary before submitting the code for review."; \

0 commit comments

Comments
 (0)