Skip to content

Commit 79c329a

Browse files
committedSep 16, 2017
Better implementation of removal of COVER_DATA_DIR if not empty
1 parent b0623a2 commit 79c329a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎plugins/cover.mk

+1-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ ifneq ($(COVER_REPORT_DIR),)
8181

8282
cover-report-clean:
8383
$(gen_verbose) rm -rf $(COVER_REPORT_DIR)
84-
# Remove the COVER_DATA_DIR only if it is empty.
85-
-$(verbose) rmdir $(COVER_DATA_DIR)
84+
$(if $(shell ls -A $(COVER_DATA_DIR)/),,$(verbose) rmdir $(COVER_DATA_DIR))
8685

8786
ifeq ($(COVERDATA),)
8887
cover-report:

0 commit comments

Comments
 (0)
Please sign in to comment.