Explorar o código

build: fix profile pattern match

Zaiming (Stone) Shi %!s(int64=3) %!d(string=hai) anos
pai
achega
acce19ef2f
Modificáronse 1 ficheiros con 3 adicións e 7 borrados
  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
 %% 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" ->
-            ce;
-        "emqx-" ++ _ ->
-            ce;
-        "emqx-enterprise" ->
-            ee;
-        "emqx-enterprise-" ++ _ ->
+        "emqx-enterprise" ++ _ ->
             ee;
             ee;
+        "emqx" ++ _ ->
+            ce;
         false ->
         false ->
             ee;
             ee;
         V ->
         V ->