Permalink
Browse files

Allow crypto to already be loaded when starting rebar

  • Loading branch information...
krestenkrab authored and dizzyd committed May 19, 2011
1 parent c71bbf6 commit b890421caea5c62a4d06e5d3a24877a2bfbeb901
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/rebar.erl
View
@@ -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(),

0 comments on commit b890421

Please sign in to comment.