JohnSundell / ShellOut

Easily run shell commands from a Swift script or command line tool
MIT License
870 stars 83 forks source link

Updated to Swift 5.1 and fixed deprecations #46

Open john-mueller opened 4 years ago

john-mueller commented 4 years ago

I noticed, while building Publish with Swift 5.1 on Linux, that ShellOut was giving build warnings related to launchPath and launch() being deprecated. As I was investigating, I found that several of the tests were not running on Linux, and were actually failing when included. This PR addresses the following issues:

I think this should cut a new version release, as it changes the minimum Swift version from 4.2 to 5.1.