ivanparvaresh / dotnet-exec

Execute shell script as dotnet tasks
MIT License
22 stars 3 forks source link

fix: make tool work on Windows #30

Closed LoremFooBar closed 4 years ago

LoremFooBar commented 4 years ago

First of all, thanks @ivanparvaresh for you effort in making this tool! I am happy I was able to find it. Unfortunately, the tool did not run for me on Windows. This PR aims to fix it. Would appreciate your review and any comments.

The problem was that the Executor always executed commands with -c as the command option. This works with /bin/bash but not with cmd.exe on Windows.

LoremFooBar commented 4 years ago

Thanks for merging. I'd be happy to help with cross platform tests, I suppose we can discuss it in an issue.

ivanparvaresh commented 4 years ago

Thanks for merging. I'd be happy to help with cross platform tests, I suppose we can discuss it in an issue.

Thank you for your great PR, I have already created an issue for that #32, feel free to look at that, 👍