diff options
Diffstat (limited to 'src/luarocks/path.lua')
-rw-r--r-- | src/luarocks/path.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/path.lua b/src/luarocks/path.lua index e613d112..42d3b8f1 100644 --- a/src/luarocks/path.lua +++ b/src/luarocks/path.lua | |||
@@ -38,8 +38,8 @@ end | |||
38 | function root_dir(rocks_dir) | 38 | function root_dir(rocks_dir) |
39 | assert(type(rocks_dir) == "string") | 39 | assert(type(rocks_dir) == "string") |
40 | 40 | ||
41 | local suffix = dir.path("lib", "luarocks", "rocks") | 41 | local suffix = dir.path("lib", "luarocks") |
42 | return rocks_dir:match("(.*)" .. suffix .. "$") | 42 | return rocks_dir:match("(.*)" .. suffix .. ".*$") |
43 | end | 43 | end |
44 | 44 | ||
45 | function deploy_bin_dir(tree) | 45 | function deploy_bin_dir(tree) |