diff options
-rw-r--r-- | src/luarocks/cmd.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/cmd.lua b/src/luarocks/cmd.lua index 9c3d91db..3cbe3852 100644 --- a/src/luarocks/cmd.lua +++ b/src/luarocks/cmd.lua | |||
@@ -224,7 +224,7 @@ do | |||
224 | local try = "." | 224 | local try = "." |
225 | for _ = 1, 10 do -- FIXME detect when root dir was hit instead | 225 | for _ = 1, 10 do -- FIXME detect when root dir was hit instead |
226 | if util.exists(try .. "/.luarocks") and util.exists(try .. "/lua_modules") then | 226 | if util.exists(try .. "/.luarocks") and util.exists(try .. "/lua_modules") then |
227 | return try, false | 227 | return dir.normalize(try), false |
228 | elseif util.exists(try .. "/.luarocks-no-project") then | 228 | elseif util.exists(try .. "/.luarocks-no-project") then |
229 | break | 229 | break |
230 | end | 230 | end |