mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +00:00
Document use of -noshell -noinput in emu_opts
This commit is contained in:
parent
6736e3147e
commit
92129d6dd2
1 changed files with 3 additions and 1 deletions
|
@ -59,7 +59,9 @@ main(Args) ->
|
|||
case zip:create("mem", Files, [memory]) of
|
||||
{ok, {"mem", ZipBin}} ->
|
||||
%% Archive was successfully created. Prefix that binary with our
|
||||
%% header and write to "rebar" file
|
||||
%% header and write to "rebar" file.
|
||||
%% Without -noshell -noinput escript consumes all input that would
|
||||
%% otherwise go to the shell for the next command.
|
||||
Script = <<"#!/usr/bin/env escript\n%%! -noshell -noinput\n", ZipBin/binary>>,
|
||||
case file:write_file("rebar", Script) of
|
||||
ok ->
|
||||
|
|
Loading…
Reference in a new issue