Skip to content

Commit

Permalink
fix: some compatibility issues with non GNU environments
Browse files Browse the repository at this point in the history
Change the test for empty directory to match one that erlang.mk uses
itself, for consistency.

refs #17
  • Loading branch information
rlipscombe committed Oct 19, 2022
1 parent 81a1d45 commit 5350d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5350d30

Please sign in to comment.