diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-12-15 11:59:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-15 11:59:35 -0500 |
commit | 9101a84f49aa58057d6ab9edccaf5409a8b849e8 (patch) | |
tree | ca70dd2a607da5d8c1ac4f1db1064046a62ec7c8 /src/rebar_prv_escriptize.erl | |
parent | b7c021b3f216bdd03d286b467889d03b142f4bf3 (diff) | |
parent | d0f958d59d1f87bda8d1d6c724a1af18af288324 (diff) |
Merge pull request #1694 from ferd/escript-with-ebin-subdir
Fix escriptize failure when ebin/ has subdirs
Diffstat (limited to 'src/rebar_prv_escriptize.erl')
-rw-r--r-- | src/rebar_prv_escriptize.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_prv_escriptize.erl b/src/rebar_prv_escriptize.erl index 1da70f8..3d6e708 100644 --- a/src/rebar_prv_escriptize.erl +++ b/src/rebar_prv_escriptize.erl @@ -194,7 +194,8 @@ load_files(Wildcard, Dir) -> load_files(Prefix, Wildcard, Dir) -> [read_file(Prefix, Filename, Dir) - || Filename <- filelib:wildcard(Wildcard, Dir)]. + || Filename <- filelib:wildcard(Wildcard, Dir), + not filelib:is_dir(filename:join(Dir, Filename))]. read_file(Prefix, Filename, Dir) -> Filename1 = case Prefix of |