Namdak Tonpa 9 years ago
parent
commit
ad2a4dee33
3 changed files with 2 additions and 2 deletions
  1. 1 1
      include/mad.hrl
  2. BIN
      mad
  3. 1 1
      src/provision/mad_repl.erl

+ 1 - 1
include/mad.hrl

@@ -1 +1 @@
--define(VERSION,"670539").
+-define(VERSION,"c0742d").

BIN
mad


+ 1 - 1
src/provision/mad_repl.erl

@@ -32,7 +32,7 @@ load_config() ->
         [] -> case mad_repl:load_file("sys.config") of
               {error,_} -> [];
               {ok,Bin} -> parse(binary_to_list(Bin)) end;
-      File -> case file:consult(File) of
+      File -> case file:consult(hd(File)) of
               {error,_} -> [];
               {ok,[A]} -> A end end,
  [ begin [ application:set_env(App,K,V) || {K,V} <- Cfg ], {App,Cfg} end || {App,Cfg} <- Apps ].