diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2022-02-17 02:07:32 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2022-02-17 02:16:50 -0300 |
commit | d1d4694d3f216030cc9653d95963a30f287f2247 (patch) | |
tree | 3c254aa10fd36c25d65cc63a32da0a65af4d5f21 /src | |
parent | c3caaecfa06467200dbd42e079baf8b468a49e6a (diff) | |
download | luarocks-d1d4694d3f216030cc9653d95963a30f287f2247.tar.gz luarocks-d1d4694d3f216030cc9653d95963a30f287f2247.tar.bz2 luarocks-d1d4694d3f216030cc9653d95963a30f287f2247.zip |
fs.tools: remove trailing spaces from current dir, for Windows
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/fs/tools.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/luarocks/fs/tools.lua b/src/luarocks/fs/tools.lua index 4fe8e104..623e5a90 100644 --- a/src/luarocks/fs/tools.lua +++ b/src/luarocks/fs/tools.lua | |||
@@ -57,7 +57,7 @@ do | |||
57 | local current = cache_pwd | 57 | local current = cache_pwd |
58 | if not current then | 58 | if not current then |
59 | local pipe = io.popen(fs.quiet_stderr(vars.PWD)) | 59 | local pipe = io.popen(fs.quiet_stderr(vars.PWD)) |
60 | current = pipe:read("*l") | 60 | current = pipe:read("*l"):gsub("%s*", "") |
61 | pipe:close() | 61 | pipe:close() |
62 | cache_pwd = current | 62 | cache_pwd = current |
63 | end | 63 | end |