From cbd26a211d2777457e28a89f75ab604eff62af68 Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Mon, 28 Dec 2020 19:27:39 +0100 Subject: [PATCH] .bam/functions.lua: in host_system() switch from 'family' to 'platform' variable. family == "unix" contains FreeBSD and MacOS. that we dont have support for. --- .bam/functions.lua | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.bam/functions.lua b/.bam/functions.lua index 2012809..2a501b7 100644 --- a/.bam/functions.lua +++ b/.bam/functions.lua @@ -23,13 +23,12 @@ end -- Returns nil if system could not be determined. function host_system() - if family ~= nil then - if family == "windows" then - return _systems[1] - end - if family == "unix" then - return _systems[2] - end + -- Check "platform" variable set by bam first. + if platform == "win32" or platform == "win64" then + return _systems[1] + end + if platform == "linux" then + return _systems[2] end local win = os.getenv('OS')