From 5dc2de6468be98480be50848bd9ba563c69a84f2 Mon Sep 17 00:00:00 2001 From: Tristan Sloughter Date: Wed, 17 Sep 2014 17:32:04 -0500 Subject: update common tests --- src/rebar3.erl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/rebar3.erl b/src/rebar3.erl index af4f3a7..d0a6baa 100644 --- a/src/rebar3.erl +++ b/src/rebar3.erl @@ -156,8 +156,13 @@ init_config({Options, _NonOptArgs}) -> init_config1(BaseConfig) -> %% Determine the location of the rebar executable; important for pulling %% resources out of the escript - ScriptName = filename:absname(escript:script_name()), - rebar_state:set(BaseConfig, escript, ScriptName). + try + ScriptName = filename:absname(escript:script_name()), + rebar_state:set(BaseConfig, escript, ScriptName) + catch + _:_ -> + BaseConfig + end. run_aux(BaseConfig, Commands) -> %% Make sure crypto is running -- cgit v1.1