diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2010-10-22 16:11:55 -0200 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-10-22 16:11:55 -0200 |
commit | 1725c68ca1f6f4b82f3adf2d2b791091c197230a (patch) | |
tree | 7b83d49579dbfbd3c03cf2fec741b945fde0c00e | |
parent | 26d5503774657a09f0df68a2fabc355beffb2ac8 (diff) | |
download | luarocks-1725c68ca1f6f4b82f3adf2d2b791091c197230a.tar.gz luarocks-1725c68ca1f6f4b82f3adf2d2b791091c197230a.tar.bz2 luarocks-1725c68ca1f6f4b82f3adf2d2b791091c197230a.zip |
Improve support for win32-msys. Closes issue #3.
-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 |