1
0
Fork 0

.bam/functions.lua: in host_system() switch from 'family' to 'platform' variable.

family == "unix" contains FreeBSD and MacOS. that we dont have support for.
This commit is contained in:
Henrik Hautakoski 2020-12-28 19:27:39 +01:00
parent 543542625d
commit cbd26a211d

View file

@ -23,13 +23,12 @@ end
-- Returns nil if system could not be determined. -- Returns nil if system could not be determined.
function host_system() function host_system()
if family ~= nil then -- Check "platform" variable set by bam first.
if family == "windows" then if platform == "win32" or platform == "win64" then
return _systems[1] return _systems[1]
end end
if family == "unix" then if platform == "linux" then
return _systems[2] return _systems[2]
end
end end
local win = os.getenv('OS') local win = os.getenv('OS')