From dd1a688537aa35653996826148b73246aa483c7b Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Mon, 21 Aug 2023 15:46:27 +0200 Subject: [PATCH] Remove remaining special casing --- Sources/ShellOut.swift | 8 -------- 1 file changed, 8 deletions(-) diff --git a/Sources/ShellOut.swift b/Sources/ShellOut.swift index 39b2119..32de09c 100644 --- a/Sources/ShellOut.swift +++ b/Sources/ShellOut.swift @@ -392,11 +392,7 @@ extension ShellOutCommand { private extension Process { @discardableResult func launchBash(with command: String, outputHandle: FileHandle? = nil, errorHandle: FileHandle? = nil, environment: [String : String]? = nil) throws -> String { -#if os(Linux) executableURL = URL(fileURLWithPath: "/bin/bash") -#else - launchPath = "/bin/bash" -#endif arguments = ["-c", command] if let environment = environment { @@ -434,11 +430,7 @@ private extension Process { } } -#if os(Linux) try run() -#else - launch() -#endif waitUntilExit()