diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fs/lua.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 145a60de..174fdc88 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -126,7 +126,8 @@ function fs_lua.is_tool_available(tool_cmd, tool_name) | |||
126 | 126 | ||
127 | -- if it looks like the tool has a pathname, try that first | 127 | -- if it looks like the tool has a pathname, try that first |
128 | if tool_cmd_no_args:match("[/\\]") then | 128 | if tool_cmd_no_args:match("[/\\]") then |
129 | local fd = io.open(tool_cmd_no_args, "r") | 129 | local tool_cmd_no_args_normalized = dir.path(tool_cmd_no_args) |
130 | local fd = io.open(tool_cmd_no_args_normalized, "r") | ||
130 | if fd then | 131 | if fd then |
131 | fd:close() | 132 | fd:close() |
132 | ok = true | 133 | ok = true |