diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-08-15 13:59:29 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-08-15 13:59:29 -0400 |
commit | a878755b66f53eaeaffd9e1cb3ec63d5ea306ab5 (patch) | |
tree | 333355b01aeecf05e4301ebbc36443acbf324be9 | |
parent | 5e9fc7f04d64013dc0a35e2128d0e59f69c3ae66 (diff) | |
parent | fa82f5bee491002fd4c3718697becbdddb7d1161 (diff) |
Merge pull request #1605 from ferd/escript-drop-dupe-ebins
Remove duplicate ebins from escripts
-rw-r--r-- | src/rebar_prv_escriptize.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_prv_escriptize.erl b/src/rebar_prv_escriptize.erl index cffbbdc..1da70f8 100644 --- a/src/rebar_prv_escriptize.erl +++ b/src/rebar_prv_escriptize.erl @@ -114,7 +114,7 @@ escriptize(State0, App) -> EbinFiles = usort(load_files(EbinPrefix, "*", "ebin")), ExtraFiles = usort(InclBeams ++ InclExtra), - Files = get_nonempty(EbinFiles ++ ExtraFiles), + Files = get_nonempty(EbinFiles ++ (ExtraFiles -- EbinFiles)), % drop dupes DefaultEmuArgs = ?FMT("%%! -escript main ~ts -pz ~ts/~ts/ebin\n", [AppNameStr, AppNameStr, AppNameStr]), |