diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2012-08-14 15:52:12 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2012-08-14 15:52:12 -0300 |
commit | 15d99158f18777e8585bd779c5d95b9842f1393b (patch) | |
tree | 5decf4d2652d6a04dce4ea78d657ac628111f926 | |
parent | 8a99d05dec5a700e14b1b033225173a425de5fce (diff) | |
download | luarocks-15d99158f18777e8585bd779c5d95b9842f1393b.tar.gz luarocks-15d99158f18777e8585bd779c5d95b9842f1393b.tar.bz2 luarocks-15d99158f18777e8585bd779c5d95b9842f1393b.zip |
Apply fix suggested by @doub. Closes #87.
-rw-r--r-- | src/luarocks/fs/lua.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 09175758..6012a454 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -39,7 +39,7 @@ function Q(arg) | |||
39 | end | 39 | end |
40 | 40 | ||
41 | local function normalize(name) | 41 | local function normalize(name) |
42 | return name:gsub("\\", "/"):gsub("/$", "") | 42 | return name:gsub("\\", "/"):gsub("(.)/*$", "%1") |
43 | end | 43 | end |
44 | 44 | ||
45 | --- Test is file/dir is writable. | 45 | --- Test is file/dir is writable. |