From 543542625d37c1d6db415f905894c93078fffcd4 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 28 Dec 2020 19:11:13 +0100 Subject: [PATCH] .bam/functions.lua: rename system() to host_system() --- .bam/functions.lua | 5 +++-- bam.lua | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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" )