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.
function host_system()
if family ~= nil then
if family == "windows" then
return _systems[1]
end
if family == "unix" then
return _systems[2]
end
-- Check "platform" variable set by bam first.
if platform == "win32" or platform == "win64" then
return _systems[1]
end
if platform == "linux" then
return _systems[2]
end
local win = os.getenv('OS')