mirror of
https://github.com/CompeyDev/lune-luau-template.git
synced 2024-12-12 12:50:41 +00:00
14 lines
314 B
Text
14 lines
314 B
Text
local process = require("@lune/process")
|
|
|
|
return {
|
|
run = function(cmd: string, ...: string)
|
|
local child = process.spawn(cmd, table.pack(...), {
|
|
stdio = "forward",
|
|
shell = true,
|
|
})
|
|
|
|
if not child.ok then
|
|
process.exit(child.code)
|
|
end
|
|
end,
|
|
}
|