aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/fs/win32/tools.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/luarocks/fs/win32/tools.lua b/src/luarocks/fs/win32/tools.lua
index 86cbb45b..56f04b19 100644
--- a/src/luarocks/fs/win32/tools.lua
+++ b/src/luarocks/fs/win32/tools.lua
@@ -131,6 +131,7 @@ function tools.find(at)
131 local pipe = io.popen(fs.command_at(at, fs.quiet_stderr(vars.FIND), true)) 131 local pipe = io.popen(fs.command_at(at, fs.quiet_stderr(vars.FIND), true))
132 for file in pipe:lines() do 132 for file in pipe:lines() do
133 -- Windows find is a bit different 133 -- Windows find is a bit different
134 local file = file
134 local first_two = file:sub(1,2) 135 local first_two = file:sub(1,2)
135 if first_two == ".\\" or first_two == "./" then file=file:sub(3) end 136 if first_two == ".\\" or first_two == "./" then file=file:sub(3) end
136 if file ~= "." then 137 if file ~= "." then
@@ -223,7 +224,7 @@ local function get_system_users()
223 local result = {} 224 local result = {}
224 local fd = assert(io.popen("wmic UserAccount get name")) 225 local fd = assert(io.popen("wmic UserAccount get name"))
225 for user in fd:lines() do 226 for user in fd:lines() do
226 user = user:gsub("%s+$", "") 227 local user = user:gsub("%s+$", "")
227 if not exclude[user] then 228 if not exclude[user] then
228 table.insert(result, user) 229 table.insert(result, user)
229 end 230 end