diff --git a/apps/rebar/src/rebar_prv_shell.erl b/apps/rebar/src/rebar_prv_shell.erl index fc0e7ab35..c6fb55995 100644 --- a/apps/rebar/src/rebar_prv_shell.erl +++ b/apps/rebar/src/rebar_prv_shell.erl @@ -133,7 +133,7 @@ format_error(Reason) -> shell(State) -> setup_name(State), setup_paths(State), - ShellArgs = debug_get_value(shell_args, rebar_state:get(State, shell, []), undefined, + ShellArgs = debug_get_value(shell_args, rebar_state:get(State, shell, []), [], "Found shell args from command line option or plugin."), setup_shell(ShellArgs), maybe_run_script(State), @@ -226,7 +226,7 @@ setup_new_shell(ShellArgs) -> _ = supervisor:terminate_child(kernel_sup, user), %% start a new shell (this also starts a new user under the correct group) case ShellArgs of - undefined -> + [] -> _ = user_drv:start(); _ -> _ = user_drv:start(ShellArgs)