Skip to content

Commit

Permalink
Merge pull request #1415 from lrascao/feature/rebar_shell_fix
Browse files Browse the repository at this point in the history
shell: don't crash apps that use release version operators
  • Loading branch information
ferd authored Dec 17, 2016
2 parents 1f8df56 + 6466c32 commit 001933f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/rebar_prv_shell.erl
Original file line number Diff line number Diff line change
Expand Up @@ -352,11 +352,15 @@ boot_apps(Apps) ->
normalize_load_apps([]) -> [];
normalize_load_apps([{App, _} | T]) -> [App | normalize_load_apps(T)];
normalize_load_apps([{App, _Vsn, load} | T]) -> [App | normalize_load_apps(T)];
normalize_load_apps([{App, _Vsn, Operator} | T]) when is_atom(Operator) ->
[App | normalize_load_apps(T)];
normalize_load_apps([App | T]) when is_atom(App) -> [App | normalize_load_apps(T)].

normalize_boot_apps([]) -> [];
normalize_boot_apps([{_App, load} | T]) -> normalize_boot_apps(T);
normalize_boot_apps([{_App, _Vsn, load} | T]) -> normalize_boot_apps(T);
normalize_boot_apps([{App, _Vsn, Operator} | T]) when is_atom(Operator) ->
[App | normalize_boot_apps(T)];
normalize_boot_apps([{App, _Vsn} | T]) -> [App | normalize_boot_apps(T)];
normalize_boot_apps([App | T]) when is_atom(App) -> [App | normalize_boot_apps(T)].

Expand Down

0 comments on commit 001933f

Please sign in to comment.