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 bbd928a0..798f15a9 100644 --- a/src/luarocks/path.lua +++ b/src/luarocks/path.lua | |||
@@ -37,8 +37,8 @@ end | |||
37 | function root_dir(rocks_dir) | 37 | function root_dir(rocks_dir) |
38 | assert(type(rocks_dir) == "string") | 38 | assert(type(rocks_dir) == "string") |
39 | 39 | ||
40 | local suffix = dir.path("lib", "luarocks", "rocks") | 40 | local suffix = dir.path("lib", "luarocks") |
41 | return rocks_dir:match("(.*)" .. suffix .. "$") | 41 | return rocks_dir:match("(.*)" .. suffix .. ".*$") |
42 | end | 42 | end |
43 | 43 | ||
44 | function deploy_bin_dir(tree) | 44 | function deploy_bin_dir(tree) |