From e1da673502975fcfbc84da66bfd4463d20acd4af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chmielowski?= Date: Fri, 12 Jan 2018 17:12:46 +0100 Subject: [PATCH] Fix detection of rebar3 Looks like sometimes rebar3 report version that can't be split to 3 fields by '.', we need only first one so don't match the rest --- rebar.config.script | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rebar.config.script b/rebar.config.script index 470b791e9..c69acc794 100644 --- a/rebar.config.script +++ b/rebar.config.script @@ -69,7 +69,7 @@ FilterConfig = fun(F, Cfg, [{Path, true, ModFun, Default} | Tail]) -> IsRebar3 = case application:get_key(rebar, vsn) of {ok, VSN} -> [VSN1 | _] = string:tokens(VSN, "-"), - [Maj, _Min, _Patch] = string:tokens(VSN1, "."), + [Maj|_] = string:tokens(VSN1, "."), (list_to_integer(Maj) >= 3); undefined -> lists:keymember(mix, 1, application:loaded_applications())