diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fs/lua.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 96017daa..14bf0369 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -122,7 +122,7 @@ function fs_lua.is_tool_available(tool_cmd, tool_name) | |||
122 | if tool_available_cache[tool_name] ~= nil then | 122 | if tool_available_cache[tool_name] ~= nil then |
123 | ok = tool_available_cache[tool_name] | 123 | ok = tool_available_cache[tool_name] |
124 | else | 124 | else |
125 | local tool_cmd_no_args = tool_cmd:gsub(" .*", "") | 125 | local tool_cmd_no_args = tool_cmd:gsub(" [^\"]*$", "") |
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 |