Skip to content
This repository has been archived by the owner on May 27, 2020. It is now read-only.

Commit

Permalink
curl-updater: Swift 3.1 Task -> Process (I think)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonycastelli committed Mar 28, 2017
1 parent 1730c8f commit 4ef4229
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Sources/VaporAPNS/CurlUpdater.swift
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,7 @@ internal class CurlUpdater {
// args = ["bash", "-c", "\"cd \(workPath) && \(args.joined(separator: " "))\""]
// }
// print (args.joined(separator: " "))
#if os(macOS)
let task = Process()
#elseif os(Linux)
let task = Task()
#endif
let task = Process()
task.launchPath = "/usr/bin/env"
task.arguments = args

Expand Down

2 comments on commit 4ef4229

@matthijs2704
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct! Used to be different in Swift 3.0 :/

@anthonycastelli
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.