Skip to content

Commit

Permalink
Change isMacOS function - references #1044
Browse files Browse the repository at this point in the history
  • Loading branch information
forki committed Dec 19, 2015
1 parent e9a909e commit f0b5f0d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/app/FakeLib/EnvironmentHelper.fs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[<AutoOpen>]
[<AutoOpen>]
/// This module contains functions which allow to read and write environment variables and build parameters
module Fake.EnvironmentHelper

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit f0b5f0d

Please sign in to comment.