neonucleus/data/OpenOS/bin/userdel.lua
IonutParau 687cfebd00 testing version of LuaBIOS and OpenOS
people were having issues getting them to work so now we promote consistency
2025-06-28 20:41:49 +02:00

14 lines
264 B
Lua

local computer = require("computer")
local shell = require("shell")
local args = shell.parse(...)
if #args ~= 1 then
io.write("Usage: userdel <name>\n")
return 1
end
if not computer.removeUser(args[1]) then
io.stderr:write("no such user\n")
return 1
end