diff --git a/.bam/functions.lua b/.bam/functions.lua index 8c0020f..2012809 100644 --- a/.bam/functions.lua +++ b/.bam/functions.lua @@ -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 diff --git a/bam.lua b/bam.lua index 8807518..d4b62ae 100644 --- a/bam.lua +++ b/bam.lua @@ -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" )