Skip to content
Permalink
Browse files

fix(make): fail on non-zero status

Apparently, find doesn't return a non-zero status when a command exits with a
non-zero status.
  • Loading branch information
Stebalien committed Feb 7, 2020
1 parent 295d06f commit 929883f3ad870bd2d133ae6e3d907a1e62a127a8
Showing with 2 additions and 1 deletion.
  1. +2 −1 Makefile
@@ -1,7 +1,8 @@
GOTFLATS ?=

define eachmod
@find . -type f -name go.mod -exec bash -c 'dir="$$(dirname {})" && cd "$${dir}" && echo "$${dir}: $(1)" && $(1)' \;
@echo '$(1)'
@find . -type f -name go.mod -print0 | xargs -I '{}' -n1 -0 bash -c 'dir="$$(dirname {})" && echo "$${dir}" && cd "$${dir}" && $(1)'
endef

pre-commit:

0 comments on commit 929883f

Please sign in to comment.
You can’t perform that action at this time.