Skip to content

Commit

Permalink
Do not let check_edown halt a build if init:get_plain_arguments() is …
Browse files Browse the repository at this point in the history
…empty

This may happen in case if rebar is used as a library.
  • Loading branch information
proger committed Sep 2, 2013
1 parent 6f7f6c3 commit 4fcabb5
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion priv/check_edown.script
Expand Up @@ -4,7 +4,11 @@
%% To build docs, call `rebar get-deps doc`
%% Assumes that the rebar config is bound to CONFIG

[_|Args] = init:get_plain_arguments(). % rebar 'commands' and options
Args = case init:get_plain_arguments() of
[_|A] -> A; % rebar 'commands' and options
_ -> []
end.

case lists:member("doc", Args) of
false ->
{ok,C1} = file:script(filename:join(filename:dirname(SCRIPT),
Expand Down

0 comments on commit 4fcabb5

Please sign in to comment.