Просмотр исходного кода

build: fix profile pattern match

Zaiming (Stone) Shi 3 лет назад
Родитель
Сommit
acce19ef2f
1 измененных файлов с 3 добавлено и 7 удалено
  1. 3 7
      rebar.config.erl

+ 3 - 7
rebar.config.erl

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