aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fs/tools.lua2
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