diff options
author | Paweł Chmielowski <pchmielowski@process-one.net> | 2018-01-12 17:12:46 +0100 |
---|---|---|
committer | Paweł Chmielowski <pchmielowski@process-one.net> | 2018-01-12 17:12:46 +0100 |
commit | e1da673502975fcfbc84da66bfd4463d20acd4af (patch) | |
tree | 461eeb9b4663672497b5d6763b32e256865f45b8 /rebar.config.script | |
parent | Improve resolving of system deps (diff) |
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
Diffstat (limited to 'rebar.config.script')
-rw-r--r-- | rebar.config.script | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rebar.config.script b/rebar.config.script index 470b791e..c69acc79 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()) |