Skip to content

Commit 4d4214f

Browse files
committed
fix: ensure tar is provided a newline-delimited list from stdin
1 parent 056f77a commit 4d4214f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/make/lib/lint/editorconfig.mk

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ lint-editorconfig-files: $(NODE_MODULES)
7979
$(QUIET) $(DELETE) $(DELETE_FLAGS) "$(BUILD_DIR)/editorconfig-checker"
8080
$(QUIET) echo 'Linting files for basic formatting errors...'
8181
$(QUIET) $(MKDIR_RECURSIVE) "$(BUILD_DIR)/editorconfig-checker"
82-
$(QUIET) $(TAR) -cf - $(FILES) | $(TAR) -xf - -C "$(BUILD_DIR)/editorconfig-checker/"
82+
$(QUIET) echo $(FILES) | tr ' ' '\n' | $(TAR) -cf - -T - | $(TAR) -xf - -C "$(BUILD_DIR)/editorconfig-checker/"
8383
$(QUIET) cd "$(BUILD_DIR)/editorconfig-checker" && \
8484
$(NODE) $(EDITORCONFIG_CHECKER) $(EDITORCONFIG_CHECKER_CONF_FLAGS) --config $(EDITORCONFIG_CHECKER_CONF) && \
8585
$(NODE) $(EDITORCONFIG_CHECKER) $(EDITORCONFIG_CHECKER_CONF_FLAGS) --config $(EDITORCONFIG_CHECKER_MARKDOWN_CONF) && \

0 commit comments

Comments
 (0)