aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rebar.config.script2
1 files changed, 1 insertions, 1 deletions
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())