JohnSundell / ShellOut

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

add env variable #38

Open thecb4 opened 6 years ago

thecb4 commented 6 years ago

I am trying to work through using pre-commit actions with swift and I've run into a situation where current command line tools like ShellOut seem to not like being called from the .git directory. Appears to be an issue with Environment Variables being set. I've made some minor changes that add an environment variable to the argument list with with a default of the "PATH" variable.