1
0
Fork 0

.bam/functions.lua: rename system() to host_system()

This commit is contained in:
Henrik Hautakoski 2020-12-28 19:11:13 +01:00
parent d9697e2eae
commit 543542625d
2 changed files with 4 additions and 3 deletions

View file

@ -19,8 +19,9 @@ function valid_system(value)
end
-- Detect what system we currently are on.
function system()
-- Find what host system we are on.
-- Returns nil if system could not be determined.
function host_system()
if family ~= nil then
if family == "windows" then

View file

@ -14,7 +14,7 @@ CheckVersion("0.5")
--------------------------------
-- 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
print ("System not supported" )