diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fs/win32/tools.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua index c3b5398e..d2613b67 100644 --- a/src/luarocks/fs/win32/tools.lua +++ b/src/luarocks/fs/win32/tools.lua | |||
@@ -246,7 +246,8 @@ function find(at) | |||
246 | local pipe = io.popen(command_at(at, "find 2> NUL")) | 246 | local pipe = io.popen(command_at(at, "find 2> NUL")) |
247 | for file in pipe:lines() do | 247 | for file in pipe:lines() do |
248 | -- Windows find is a bit different | 248 | -- Windows find is a bit different |
249 | if file:sub(1,2)==".\\" then file=file:sub(3) end | 249 | local first_two = file:sub(1,2) |
250 | if first_two == ".\\" or first_two == "./" then file=file:sub(3) end | ||
250 | if file ~= "." then | 251 | if file ~= "." then |
251 | table.insert(result, (file:gsub("\\", "/"))) | 252 | table.insert(result, (file:gsub("\\", "/"))) |
252 | end | 253 | end |