diff options
Diffstat (limited to 'src/rebar_utils.erl')
-rw-r--r-- | src/rebar_utils.erl | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rebar_utils.erl b/src/rebar_utils.erl index 056618b..2e0796d 100644 --- a/src/rebar_utils.erl +++ b/src/rebar_utils.erl @@ -140,7 +140,11 @@ escript_foldl(Fun, Acc, File) -> end. find_executable(Name) -> - "\"" ++ filename:nativename(os:find_executable(Name)) ++ "\"". + case os:find_executable(Name) of + false -> false; + Path -> + "\"" ++ filename:nativename(Path) ++ "\"" + end. %% ==================================================================== %% Internal functions |