Skip to content
This repository has been archived by the owner on Jul 28, 2018. It is now read-only.

Commit

Permalink
Merge pull request #12 from andrzejsliwa/improve_output
Browse files Browse the repository at this point in the history
improved output to display output of os commands.
  • Loading branch information
ferd committed Oct 21, 2014
2 parents 856e573 + 7e52808 commit 7fe7f69
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions install.escript
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ update_kernel_app_file(Path) ->
{ok, [{application, kernel, Sections}]} = file:consult(Path),
ModList = proplists:get_value(modules, Sections),
case lists:member(group_history, ModList) of
true ->
true ->
io:format("group_history already in modules list of kernel.app~n"),
ok;
false ->
NewModList = [group_history | ModList],
NewSections = [ {modules, NewModList}
NewSections = [ {modules, NewModList}
| proplists:delete(modules, Sections) ],
AppSpec = {application, kernel, NewSections},
AppContents = io_lib:format("~p.",[AppSpec]),
Expand Down Expand Up @@ -64,12 +64,12 @@ update_modules(Path, Version) ->
[Path, Path]
),
io:format("Backing up existing file~n"),
os:cmd(BackupCmd)
io:format("~s", [os:cmd(BackupCmd)])
end,
%% add in the modified group.erl and the new group_history.erl
CopyCmd = io_lib:format(
"cp ebin/~s/*.beam \"~s\"",
[Version, Path]
),
io:format("Installing...~n"),
os:cmd(CopyCmd).
io:format("~s", [os:cmd(CopyCmd)]).

0 comments on commit 7fe7f69

Please sign in to comment.