summaryrefslogtreecommitdiff
path: root/src/rebar_shell.erl
diff options
context:
space:
mode:
authorKresten Krab Thorup <krab@trifork.com>2011-06-21 20:13:17 +0200
committerDave Smith <dizzyd@dizzyd.com>2012-07-11 08:42:48 -0600
commit4541f8f5db0cf5d0fc0bc65140c5f5f3185cd044 (patch)
tree1a287fc7b5a539d15e118cb044ecde4dcdab4bd9 /src/rebar_shell.erl
parentb890421caea5c62a4d06e5d3a24877a2bfbeb901 (diff)
Fix crazy indentation :-)
Diffstat (limited to 'src/rebar_shell.erl')
-rw-r--r--src/rebar_shell.erl18
1 files changed, 7 insertions, 11 deletions
diff --git a/src/rebar_shell.erl b/src/rebar_shell.erl
index f8fa580..aed7879 100644
--- a/src/rebar_shell.erl
+++ b/src/rebar_shell.erl
@@ -33,20 +33,16 @@
-export([shell/2]).
shell(_Config, _AppFile) ->
-
%% backwards way to say we only want this executed
%% for the "top level" directory
case is_deps_dir(rebar_utils:get_cwd()) of
false ->
true = code:add_pathz(ebin_dir()),
-
user_drv:start(),
-
%% this call never returns (until user quits shell)
- shell:server(false, false);
-
- true ->
- ok
+ shell:server(false, false);
+ true ->
+ ok
end,
ok.
@@ -55,8 +51,8 @@ ebin_dir() ->
is_deps_dir(Dir) ->
case lists:reverse(filename:split(Dir)) of
- [_, "deps" | _] ->
- true;
- _V ->
- false
+ [_, "deps" | _] ->
+ true;
+ _V ->
+ false
end.