.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:
parent
543542625d
commit
cbd26a211d
1 changed files with 6 additions and 7 deletions
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue