Browse Source

fix warning

Namdak Tonpa 10 years ago
parent
commit
543e1dfd99
2 changed files with 2 additions and 2 deletions
  1. BIN
      mad
  2. 2 2
      src/mad_deps.erl

BIN
mad


+ 2 - 2
src/mad_deps.erl

@@ -6,10 +6,10 @@ pull(F) ->
     io:format("==> up: ~p~n", [F]),
     {_,Status,Message} = sh:run(io_lib:format("git -C ~p pull",[F])),
     case Status of
+         0 -> false;
          _ -> case binary:match(Message,[<<"Aborting">>,<<"timed out">>]) of
                    nomatch -> false;
-                   _ -> io:format("~s",[binary_to_list(Message)]), true end;
-         0 -> false end.
+                   _ -> io:format("~s",[binary_to_list(Message)]), true end end.
 
 up(Params) ->
     List = case Params of