diff options
author | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2019-10-05 07:37:56 -0700 |
---|---|---|
committer | Trumeet <17158086+Trumeet@users.noreply.github.com> | 2019-10-05 07:37:56 -0700 |
commit | e2d9d48ce07b272faec5dccba4ae23725b75d2d1 (patch) | |
tree | f566703d636bc70c1ccfb30676ed92f3998f7fc3 | |
parent | bc68dff2130a610c64662acc99ca17f97f77530d (diff) | |
download | PortableVM-e2d9d48ce07b272faec5dccba4ae23725b75d2d1.tar PortableVM-e2d9d48ce07b272faec5dccba4ae23725b75d2d1.tar.gz PortableVM-e2d9d48ce07b272faec5dccba4ae23725b75d2d1.tar.bz2 PortableVM-e2d9d48ce07b272faec5dccba4ae23725b75d2d1.zip |
feat: support LuaJIT
-rw-r--r-- | Utils.lua | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -3,7 +3,13 @@ function Utils.exec(command) if os.getenv("DEBUG") == "1" then print("(Debug) Execute " .. command .. " (Status only)") end - return os.execute(command) + local result = os.execute(command) + if type(result) == "boolean" then + return result + -- For LuaJIT + elseif type(result) == "number" then + return result == 0 + end end function Utils.exec2(command) if os.getenv("DEBUG") == "1" then |