summaryrefslogtreecommitdiff
path: root/src/rebar3.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/rebar3.erl')
-rw-r--r--src/rebar3.erl9
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