From d1d4694d3f216030cc9653d95963a30f287f2247 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 17 Feb 2022 02:07:32 -0300 Subject: fs.tools: remove trailing spaces from current dir, for Windows --- src/luarocks/fs/tools.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 local current = cache_pwd if not current then local pipe = io.popen(fs.quiet_stderr(vars.PWD)) - current = pipe:read("*l") + current = pipe:read("*l"):gsub("%s*", "") pipe:close() cache_pwd = current end -- cgit v1.2.3-55-g6feb