Skip to content

Commit 0d3c5d0

Browse files
committed
Ensure a non-zero exit status if a pipe fails
1 parent 0b5ca12 commit 0d3c5d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/make/lib/examples/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# This target runs a list of examples in sequential order. Note that we assume the examples can be run using Node.js.
77

88
examples: $(NODE_MODULES)
9-
$(QUIET) $(FIND_EXAMPLES_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
9+
$(QUIET) set -o pipefail ; $(FIND_EXAMPLES_CMD) | grep '^[\/]\|^[a-zA-Z]:[/\]' | while read -r file; do \
1010
echo ""; \
1111
echo "Running example: $$file"; \
1212
NODE_ENV=$(NODE_ENV_EXAMPLES) \

0 commit comments

Comments
 (0)