File tree Expand file tree Collapse file tree 1 file changed +7
-15
lines changed
tools/make/lib/lint/javascript Expand file tree Collapse file tree 1 file changed +7
-15
lines changed Original file line number Diff line number Diff line change @@ -253,26 +253,18 @@ endif
253253eslint-files : $(NODE_MODULES )
254254ifeq ($(FAIL_FAST ) , true)
255255 $(QUIET) for file in $(FILES); do \
256- if [ -f "$$file" ]; then \
257256 echo ''; \
258- echo "Linting file: $$file"; \
259- $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file || exit 1; \
260- else \
261- echo "Skipping missing file: $$file"; \
262- fi; \
257+ echo "Linting file: $$file"; \
258+ $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file || exit 1; \
263259 done
264260else
265261 $(QUIET) status=0; \
266262 for file in $(FILES); do \
267- if [ -f "$$file" ]; then \
268- echo ''; \
269- echo "Linting file: $$file"; \
270- if ! $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file; then \
271- echo 'Linting failed.'; \
272- status=1; \
273- fi; \
274- else \
275- echo "Skipping missing file: $$file"; \
263+ echo ''; \
264+ echo "Linting file: $$file"; \
265+ if ! $(ESLINT) $(eslint_flags) --config $(ESLINT_CONF) $$file; then \
266+ echo 'Linting failed.'; \
267+ status=1; \
276268 fi; \
277269 done; \
278270 exit $$status;
You can’t perform that action at this time.
0 commit comments