From 5350d3063b2abf9519c30e5d620ac3617c0dbbfc Mon Sep 17 00:00:00 2001 From: Roger Lipscombe Date: Wed, 19 Oct 2022 09:43:14 +0100 Subject: [PATCH] fix: some compatibility issues with non GNU environments Change the test for empty directory to match one that erlang.mk uses itself, for consistency. refs #17 --- plugins.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins.mk b/plugins.mk index 9abedc4..a27655d 100644 --- a/plugins.mk +++ b/plugins.mk @@ -52,7 +52,7 @@ endif $(verbose) rm -rf $(ELVIS_BUILD_DIR)/elvis-$(ELVIS_VERSION) $(verbose) rm $(ELVIS_BUILD_DIR)/$(ELVIS_CODE_ARCHIVE) $(verbose) rm -f $(ELVIS_BUILD_DIR)/rebar3 - $(verbose) [ -z "$(ls -A $(ELVIS_BUILD_DIR))" ] || rmdir $(ELVIS_BUILD_DIR) + $(if $(shell ls -A $(ELVIS_BUILD_DIR)/),,$(verbose) rmdir $(ELVIS_BUILD_DIR)) elvis: $(ELVIS) $(verbose) $(ELVIS) rock -c $(ELVIS_CONFIG) $(ELVIS_OPTS)