Browse Source

Don't use the non-portable flock -c, use flock sh -c

Loïc Hoguin 6 years ago
parent
commit
933a967c0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/deps.mk

+ 1 - 1
core/deps.mk

@@ -202,7 +202,7 @@ endef
 define dep_autopatch_fetch_rebar
 	mkdir -p $(ERLANG_MK_TMP); \
 	if command -v flock >/dev/null; then \
-		flock $(ERLANG_MK_TMP)/rebar.lock -c "$(call dep_autopatch_fetch_rebar2)"; \
+		flock $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \
 	elif command -v lockf >/dev/null; then \
 		lockf $(ERLANG_MK_TMP)/rebar.lock sh -c "$(call dep_autopatch_fetch_rebar2)"; \
 	else \