Skip to content

Commit 3aafd16

Browse files
Merge pull request #3 from SwiftPackageIndex/remove-special-casing
Remove remaining special casing
2 parents 5e0384f + dd1a688 commit 3aafd16

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/ShellOut.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -392,11 +392,7 @@ extension ShellOutCommand {
392392

393393
private extension Process {
394394
@discardableResult func launchBash(with command: String, outputHandle: FileHandle? = nil, errorHandle: FileHandle? = nil, environment: [String : String]? = nil) throws -> String {
395-
#if os(Linux)
396395
executableURL = URL(fileURLWithPath: "/bin/bash")
397-
#else
398-
launchPath = "/bin/bash"
399-
#endif
400396
arguments = ["-c", command]
401397

402398
if let environment = environment {
@@ -434,11 +430,7 @@ private extension Process {
434430
}
435431
}
436432

437-
#if os(Linux)
438433
try run()
439-
#else
440-
launch()
441-
#endif
442434

443435
waitUntilExit()
444436

0 commit comments

Comments
 (0)