From acce19ef2f863763141c85ca9b8d5c0baceef869 Mon Sep 17 00:00:00 2001 From: "Zaiming (Stone) Shi" Date: Sun, 14 Aug 2022 18:29:36 +0200 Subject: [PATCH] build: fix profile pattern match --- rebar.config.erl | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/rebar.config.erl b/rebar.config.erl index a4265cae3..17c94374c 100644 --- a/rebar.config.erl +++ b/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 ->