diff options
author | Tristan Sloughter <t@crashfast.com> | 2014-09-17 17:32:04 -0500 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2014-09-17 17:32:04 -0500 |
commit | 5dc2de6468be98480be50848bd9ba563c69a84f2 (patch) | |
tree | 6288bf05f793acef7a6d36e3f7c87dccd6921d34 /src | |
parent | 48769e75c224ccd8e04df250b86b50540270ce9a (diff) |
update common tests
Diffstat (limited to 'src')
-rw-r--r-- | src/rebar3.erl | 9 |
1 files changed, 7 insertions, 2 deletions
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 |