Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fs.find() on win32-msys undesired behaviour #3

Closed
arch-jslin opened this issue Oct 22, 2010 · 1 comment
Closed

fs.find() on win32-msys undesired behaviour #3

arch-jslin opened this issue Oct 22, 2010 · 1 comment
Labels

Comments

@arch-jslin
Copy link

everything is alright when using cmd.exe on win32 platform,
but I have a need to use luarocks in msysgit environment,
and the fs.find() with msys' find command produced undesired
behaviour, causing rock deployment while using msys impossible.

I changed following lines of luarocks.fs.win32.tools:
248:
-- Windows find is a bit different
if file:sub(1,2)=="." then file=file:sub(3) end
if file ~= "." then
...

to
248:
-- Windows find is a bit different
if file:sub(1,2)=="." then file=file:sub(3) end
if file:sub(1,2)=="./" then file=file:sub(3) end --the added line
if file ~= "." then
...

@hishamhm
Copy link
Member

Fix committed!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants