cb_admin icon indicating copy to clipboard operation
cb_admin copied to clipboard

Strange "vsn" value in Applications loaded pour cb_admin

Open lc3t35 opened this issue 11 years ago • 0 comments

As you can see at https://github.com/ChicagoBoss/cb_admin/issues/35 snapshot, there is a strange value of cb_admin:vsn in Applications loaded, instead of "0.7.1' we have "/bin/sh: 1: 0.7.1: not found" ...

Applications loaded

    {kernel,"ERTS CXC 138 10","2.16.1"}
    {lager,"Erlang logging framework","2.0.3"} 
    {cowboy,"Small, fast, modular HTTP server.","0.9.0"}
    {mimetypes,"mimetypes","1.0"}
    {cb_admin,"Chicago Boss Admin Interface","/bin/sh: 1: 0.7.1: not found"}
    {goldrush,"Erlang event stream processor","0.1.6"}
    {boss,"Chicago Boss web framework, now serving three flavors of Comet", "0.8.11"}
    {crypto,"CRYPTO version 2","2.3"}
    {stdlib,"ERTS CXC 138 10","1.19.1"}
    {cowlib,"Support library for manipulating Web protocols.","0.4.0"}
    {syntax_tools,"Syntax tools","1.6.11"}
    {compiler,"ERTS CXC 138 10","4.9.1"}
    {tinymq,"TinyMQ: a diminutive message queue","0.1.1"}
    {ranch,"Socket acceptor pool for TCP protocols.","0.9.0"}
    {sasl,"SASL CXC 138 11","2.3.1"}

Searching : cb_admin.app.src : {vsn, "0.7.1"} OK cb_admin_admin_controller.erl : {modules_loaded, ModulesLoaded} is set by application:info() Searching for "loaded" in boss, i went to boss_load.rel :

make_computed_vsn({unknown, Val} ) ->Val;
make_computed_vsn(Cmd ) ->
    VsnString = os:cmd(Cmd),
    string:strip(VsnString, right, $\n).

lc3t35 avatar Aug 24 '14 13:08 lc3t35