From a4ffe1ce62aded579cef12cd707378360e64e902 Mon Sep 17 00:00:00 2001 From: Tuncer Ayaz Date: Sun, 17 Jul 2011 18:38:59 +0200 Subject: Use filename:join/1 --- src/rebar_app_utils.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rebar_app_utils.erl') diff --git a/src/rebar_app_utils.erl b/src/rebar_app_utils.erl index 7e6cbd9..b47520a 100644 --- a/src/rebar_app_utils.erl +++ b/src/rebar_app_utils.erl @@ -45,12 +45,12 @@ is_app_dir() -> is_app_dir(rebar_utils:get_cwd()). is_app_dir(Dir) -> - AppSrc = filename:join(Dir, "src/*.app.src"), + AppSrc = filename:join([Dir, "src", "*.app.src"]), case filelib:wildcard(AppSrc) of [AppSrcFile] -> {true, AppSrcFile}; _ -> - App = filename:join([Dir, "ebin/*.app"]), + App = filename:join([Dir, "ebin", "*.app"]), case filelib:wildcard(App) of [AppFile] -> {true, AppFile}; -- cgit v1.1