diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-11 19:13:28 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-04-11 19:13:28 -0300 |
commit | df8a3cd3c957db337bfc3ab4d404c33066a24923 (patch) | |
tree | 4d866282dc3accef469bbde8c2454c63143a4cef | |
parent | de978bfcc0b90600ab3a0e0d22e4fd7dd5a6d387 (diff) | |
download | luarocks-df8a3cd3c957db337bfc3ab4d404c33066a24923.tar.gz luarocks-df8a3cd3c957db337bfc3ab4d404c33066a24923.tar.bz2 luarocks-df8a3cd3c957db337bfc3ab4d404c33066a24923.zip |
fs: try to accept a quoted filename with spaces
-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 |