chore: update app.src.script
This commit is contained in:
parent
a7c4266acb
commit
0ee899d0b7
|
@ -12,16 +12,15 @@ Config = case os:getenv("EMQX_DESC") of
|
||||||
end,
|
end,
|
||||||
|
|
||||||
RemoveLeadingV =
|
RemoveLeadingV =
|
||||||
fun(Tag) ->
|
fun(Tag) ->
|
||||||
case re:run(Tag, "v\[0-9\]+\.\[0-9\]+\.*") of
|
case re:run(Tag, "^\[ev0-9\]+\.\[0-9\]+\.*") of
|
||||||
nomatch ->
|
nomatch ->
|
||||||
Tag;
|
Tag;
|
||||||
{match, _} ->
|
{match, _} ->
|
||||||
%% if it is a version number prefixed by 'v' then remove the 'v'
|
%% if it is a version number prefixed by 'v' or 'e', then remove it
|
||||||
"v" ++ Vsn = Tag,
|
re:replace(Tag, "[v|e]", "", [{return ,list}])
|
||||||
Vsn
|
end
|
||||||
end
|
end,
|
||||||
end,
|
|
||||||
|
|
||||||
case os:getenv("EMQX_DEPS_DEFAULT_VSN") of
|
case os:getenv("EMQX_DEPS_DEFAULT_VSN") of
|
||||||
false -> Config; % env var not defined
|
false -> Config; % env var not defined
|
||||||
|
|
Loading…
Reference in New Issue