diff --git a/Catch.xcodeproj/project.pbxproj b/Catch.xcodeproj/project.pbxproj index db743b4..b688c56 100644 --- a/Catch.xcodeproj/project.pbxproj +++ b/Catch.xcodeproj/project.pbxproj @@ -723,7 +723,7 @@ CODE_SIGN_IDENTITY = ""; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 783; + CURRENT_PROJECT_VERSION = 786; ENABLE_STRICT_OBJC_MSGSEND = YES; ENABLE_TESTABILITY = YES; FRAMEWORK_SEARCH_PATHS = ( @@ -788,7 +788,7 @@ CODE_SIGN_IDENTITY = "Mac Developer"; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; - CURRENT_PROJECT_VERSION = 783; + CURRENT_PROJECT_VERSION = 786; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; diff --git a/Sources/App/Scripts.swift b/Sources/App/Scripts.swift index cdeaa24..43dad8a 100644 --- a/Sources/App/Scripts.swift +++ b/Sources/App/Scripts.swift @@ -20,7 +20,17 @@ extension Process { } } } - script.launch() + + if #available(macOS 10.13, *) { + do { + try script.run() + } catch { + os_log("Couldn't run script: %{public}@", log: .main, type: .error, error.localizedDescription) + completion?(false) + } + } else { + script.launch() + } } } }