1
0
mirror of https://github.com/natnat-mc/moonbuild synced 2026-05-28 09:39:40 +02:00
Files
moonbuild/moonbuild/compat/execute.moon
T
Codinget c8670ab903 v2
2020-11-07 21:01:26 +01:00

11 lines
142 B
MoonScript

import execute from os
{
execute: (cmd) ->
a, b, c = execute cmd
if (type a) == 'boolean'
a, b, c
else
a==0 or nil, 'exit', a
}