build: fix profile pattern match

This commit is contained in:
Zaiming (Stone) Shi 2022-08-14 18:29:36 +02:00
parent e436d93b0d
commit acce19ef2f
1 changed files with 3 additions and 7 deletions

View File

@ -181,14 +181,10 @@ warn_profile_env() ->
%% this function is only used for test/check profiles %% this function is only used for test/check profiles
get_edition_from_profille_env() -> get_edition_from_profille_env() ->
case os:getenv("PROFILE") of case os:getenv("PROFILE") of
"emqx" -> "emqx-enterprise" ++ _ ->
ce;
"emqx-" ++ _ ->
ce;
"emqx-enterprise" ->
ee;
"emqx-enterprise-" ++ _ ->
ee; ee;
"emqx" ++ _ ->
ce;
false -> false ->
ee; ee;
V -> V ->