Skip to content

Commit

Permalink
Slightly better rebar invocation procedure
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed Feb 24, 2011
1 parent e2e5eab commit e76b1f2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified rebar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/agner_fetch.erl
Expand Up @@ -458,7 +458,7 @@ rebar(#opts_rec{ spec = {spec, Spec}, quiet = Quiet, directory = Directory }) ->
io:format("[Building...]~n"),
RebarCommands = proplists:get_value(rebar_commands, Spec),

Port = open_port({spawn_executable,escript:script_name()},[{cd, Directory},{arg0, "rebar"}, {args, RebarCommands}, exit_status,stderr_to_stdout,use_stdio, stream]),
Port = open_port({spawn_executable,escript:script_name()},[{cd, Directory},{arg0, filename:join(filename:dirname(escript:script_name()), "rebar")}, {args, RebarCommands}, exit_status,stderr_to_stdout,use_stdio, stream]),
unlink(Port),
PortHandler = fun (F) ->
receive
Expand Down

0 comments on commit e76b1f2

Please sign in to comment.