From b890421caea5c62a4d06e5d3a24877a2bfbeb901 Mon Sep 17 00:00:00 2001 From: Kresten Krab Thorup Date: Thu, 19 May 2011 11:23:12 +0200 Subject: Allow crypto to already be loaded when starting rebar --- src/rebar.erl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/rebar.erl b/src/rebar.erl index 11b97da..0b7602b 100644 --- a/src/rebar.erl +++ b/src/rebar.erl @@ -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(), -- cgit v1.1