.bam/functions.lua: adding documentation to host_system()
This commit is contained in:
parent
cbd26a211d
commit
0a75f0c2ed
1 changed files with 3 additions and 0 deletions
|
|
@ -31,10 +31,13 @@ function host_system()
|
||||||
return _systems[2]
|
return _systems[2]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- next, check if we are on windows by checking
|
||||||
|
-- the 'OS' environment variable
|
||||||
local win = os.getenv('OS')
|
local win = os.getenv('OS')
|
||||||
if win ~= nil and win:lower():match('windows') then
|
if win ~= nil and win:lower():match('windows') then
|
||||||
return _systems[1]
|
return _systems[1]
|
||||||
end
|
end
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue