Browse Source

Improve rebar detection for autopatch

Loïc Hoguin 10 years ago
parent
commit
196ce31696
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/deps.mk

+ 1 - 1
core/deps.mk

@@ -60,7 +60,7 @@ distclean:: distclean-deps distclean-pkg
 # in practice only Makefile is needed so far.
 define dep_autopatch
 	if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
-		if [ 0 != `grep -c rebar $(DEPS_DIR)/$(1)/Makefile` ]; then \
+		if [ 0 != `grep -ci rebar $(DEPS_DIR)/$(1)/Makefile` ]; then \
 			$(call dep_autopatch2,$(1)); \
 		else \
 			$(call dep_autopatch_erlang_mk,$(1)); \