diff --git a/.bam/functions.lua b/.bam/functions.lua index 2a501b7..f04bfa3 100644 --- a/.bam/functions.lua +++ b/.bam/functions.lua @@ -31,10 +31,13 @@ function host_system() return _systems[2] end + -- next, check if we are on windows by checking + -- the 'OS' environment variable local win = os.getenv('OS') if win ~= nil and win:lower():match('windows') then return _systems[1] end + return nil end