diff --git a/src/app/FakeLib/EnvironmentHelper.fs b/src/app/FakeLib/EnvironmentHelper.fs index 520f915d4e4..9ab457bce34 100644 --- a/src/app/FakeLib/EnvironmentHelper.fs +++ b/src/app/FakeLib/EnvironmentHelper.fs @@ -1,4 +1,4 @@ -[] +[] /// This module contains functions which allow to read and write environment variables and build parameters module Fake.EnvironmentHelper @@ -119,8 +119,9 @@ let isUnix = Environment.OSVersion.Platform = PlatformID.Unix /// Determines if the current system is a MacOs system let isMacOS = - // osascript is the AppleScript interpreter on OS X - File.Exists "/usr/bin/osascript" + (Environment.OSVersion.Platform = PlatformID.MacOSX) || + // osascript is the AppleScript interpreter on OS X + File.Exists "/usr/bin/osascript" /// Determines if the current system is a Linux system let isLinux = int System.Environment.OSVersion.Platform |> fun p -> (p = 4) || (p = 6) || (p = 128)