.bam/functions.lua: rename system() to host_system()
This commit is contained in:
parent
d9697e2eae
commit
543542625d
2 changed files with 4 additions and 3 deletions
|
|
@ -19,8 +19,9 @@ function valid_system(value)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
-- Detect what system we currently are on.
|
-- Find what host system we are on.
|
||||||
function system()
|
-- Returns nil if system could not be determined.
|
||||||
|
function host_system()
|
||||||
|
|
||||||
if family ~= nil then
|
if family ~= nil then
|
||||||
if family == "windows" then
|
if family == "windows" then
|
||||||
|
|
|
||||||
2
bam.lua
2
bam.lua
|
|
@ -14,7 +14,7 @@ CheckVersion("0.5")
|
||||||
--------------------------------
|
--------------------------------
|
||||||
|
|
||||||
-- Target specified on command line or get host system.
|
-- Target specified on command line or get host system.
|
||||||
TARGET_OS = ScriptArgs.target or system()
|
TARGET_OS = ScriptArgs.target or host_system()
|
||||||
|
|
||||||
if not valid_system(TARGET_OS) then
|
if not valid_system(TARGET_OS) then
|
||||||
print ("System not supported" )
|
print ("System not supported" )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue