mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-20 16:15:59 +01:00
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
This commit is contained in:
parent
7d58b7a100
commit
e1da673502
@ -69,7 +69,7 @@ FilterConfig = fun(F, Cfg, [{Path, true, ModFun, Default} | Tail]) ->
|
|||||||
IsRebar3 = case application:get_key(rebar, vsn) of
|
IsRebar3 = case application:get_key(rebar, vsn) of
|
||||||
{ok, VSN} ->
|
{ok, VSN} ->
|
||||||
[VSN1 | _] = string:tokens(VSN, "-"),
|
[VSN1 | _] = string:tokens(VSN, "-"),
|
||||||
[Maj, _Min, _Patch] = string:tokens(VSN1, "."),
|
[Maj|_] = string:tokens(VSN1, "."),
|
||||||
(list_to_integer(Maj) >= 3);
|
(list_to_integer(Maj) >= 3);
|
||||||
undefined ->
|
undefined ->
|
||||||
lists:keymember(mix, 1, application:loaded_applications())
|
lists:keymember(mix, 1, application:loaded_applications())
|
||||||
|
Loading…
Reference in New Issue
Block a user