Kaynağa Gözat

Document use of -noshell -noinput in emu_opts

pull/3/head
Scott Lystig Fritchie 14 yıl önce
işlemeyi yapan: Tuncer Ayaz
ebeveyn
işleme
92129d6dd2
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. +3
    -1
      bootstrap

+ 3
- 1
bootstrap Dosyayı Görüntüle

@ -59,7 +59,9 @@ main(Args) ->
case zip:create("mem", Files, [memory]) of case zip:create("mem", Files, [memory]) of
{ok, {"mem", ZipBin}} -> {ok, {"mem", ZipBin}} ->
%% Archive was successfully created. Prefix that binary with our %% 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>>, Script = <<"#!/usr/bin/env escript\n%%! -noshell -noinput\n", ZipBin/binary>>,
case file:write_file("rebar", Script) of case file:write_file("rebar", Script) of
ok -> ok ->

Yükleniyor…
İptal
Kaydet