Compare commits

...

2 Commits

Author SHA1 Message Date
Ivan Dyachkov 6caedb94e7 Merge branch 'build-use-realpath-in-emqx' into id-test-homebrew 2022-09-07 21:41:01 +02:00
Ivan Dyachkov 04b78d7b67 build: take into account PKG_VSN env variable in rebar.config.erl 2022-09-07 20:50:42 +02:00
1 changed files with 9 additions and 4 deletions

View File

@ -482,10 +482,15 @@ emqx_etc_overlay_per_edition(ee) ->
]. ].
get_vsn(Profile) -> get_vsn(Profile) ->
%% to make it compatible to Linux and Windows, case os:getenv("PKG_VSN") of
%% we must use bash to execute the bash file false ->
%% because "./" will not be recognized as an internal or external command %% to make it compatible to Linux and Windows,
os_cmd("pkg-vsn.sh " ++ atom_to_list(Profile)). %% we must use bash to execute the bash file
%% because "./" will not be recognized as an internal or external command
os_cmd("pkg-vsn.sh " ++ atom_to_list(Profile));
Vsn ->
Vsn
end.
os_cmd(Cmd) -> os_cmd(Cmd) ->
Output = os:cmd("bash " ++ Cmd), Output = os:cmd("bash " ++ Cmd),