Skip to content

Commit ab0e400

Browse files
committed
Ensure a non-zero exit status if a pipe fails
1 parent 157e088 commit ab0e400

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/make/lib/repl/browser.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ REPL_BROWSER_BUNDLE ?= $(REPL_BROWSER_BUNDLE_OUT)/bundle.js
2727
# This target starts a browser REPL environment.
2828

2929
repl-browser: $(NODE_MODULES)
30-
$(QUIET) NODE_ENV=$(NODE_ENV_REPL) $(BROWSERIFY) \
30+
$(QUIET) set -o pipefail ; \
31+
NODE_ENV=$(NODE_ENV_REPL) $(BROWSERIFY) \
3132
$(REPL_BROWSERIFY_FLAGS) \
3233
$(REPL_BROWSER_SRC) \
3334
| DEBUG=* $(repl_tmp_http_server) \

0 commit comments

Comments
 (0)