diff options
| author | Tony Garnock-Jones <tonyg@kcbbs.gen.nz> | 2009-01-15 14:23:59 +1300 |
|---|---|---|
| committer | Tony Garnock-Jones <tonyg@kcbbs.gen.nz> | 2009-01-15 14:23:59 +1300 |
| commit | 833b197ff5a2e9642927909c7fa6863f863cb6b7 (patch) | |
| tree | 64b83f5b13f3411a45c4929c22e047f4fce9df43 /generate_app | |
| parent | c1e30f937aadd54e43c71a91f836d1f44f7a16a7 (diff) | |
| download | rabbitmq-server-git-833b197ff5a2e9642927909c7fa6863f863cb6b7.tar.gz | |
Use io:read('') instead of io:read("") to avoid a "prompt" of "[]" ending up
in the output.
Diffstat (limited to 'generate_app')
| -rw-r--r-- | generate_app | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/generate_app b/generate_app index bb6f751613..623012927e 100644 --- a/generate_app +++ b/generate_app @@ -4,7 +4,7 @@ main([BeamDir]) -> Modules = [list_to_atom(filename:basename(F, ".beam")) || F <- filelib:wildcard("*.beam", BeamDir)], - {ok, {application, Application, Properties}} = io:read(""), + {ok, {application, Application, Properties}} = io:read(''), NewProperties = lists:keyreplace(modules, 1, Properties, {modules, Modules}), io:format("~p.", [{application, Application, NewProperties}]). |
