Allow crypto to already be loaded when starting rebar

This commit is contained in:
Kresten Krab Thorup 2011-05-19 11:23:12 +02:00 committed by Dave Smith
parent c71bbf6a0d
commit b890421cae

View file

@ -95,7 +95,10 @@ run_aux(["version"]) ->
ok;
run_aux(Commands) ->
%% Make sure crypto is running
ok = crypto:start(),
case crypto:start() of
ok -> ok;
{error,{already_started,crypto}} -> ok
end,
%% Initialize logging system
rebar_log:init(),