We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0623a2 commit 79c329aCopy full SHA for 79c329a
plugins/cover.mk
@@ -81,8 +81,7 @@ ifneq ($(COVER_REPORT_DIR),)
81
82
cover-report-clean:
83
$(gen_verbose) rm -rf $(COVER_REPORT_DIR)
84
- # Remove the COVER_DATA_DIR only if it is empty.
85
- -$(verbose) rmdir $(COVER_DATA_DIR)
+ $(if $(shell ls -A $(COVER_DATA_DIR)/),,$(verbose) rmdir $(COVER_DATA_DIR))
86
87
ifeq ($(COVERDATA),)
88
cover-report:
0 commit comments