mirror of
https://github.com/CompeyDev/lune-packaging.git
synced 2025-01-10 04:39:08 +00:00
14 lines
381 B
Lua
14 lines
381 B
Lua
local function assert(condition, err)
|
|
if not condition then
|
|
console.error(err)
|
|
process.exit(0)
|
|
end
|
|
end
|
|
|
|
local path = process.cwd .. "asdfghjkl"
|
|
|
|
assert(fs.isDir(path), "Process should exit with success")
|
|
assert(fs.isDir(path), "Process should exit with success")
|
|
assert(fs.isDir(path), "Process should exit with success")
|
|
|
|
error("Process should have exited with success...")
|