Action-a won't finish

I am running into the issue where I get 

/bin/sh: 0: Illegal option -
 ##[error]Docker run failed with exit code 2

in my actions window and I can’t find a solution to it. Not sure if this is a bug or issue on my side. 

System config: WSL on Windows 10

Any help would be great. 

1 Like

@vishesh-gupta I can’t see the repository, but judging from the message:

/bin/sh: 0: Illegal option -

Are you sure you included the shebang before the command? Should be:

!#/bin/sh -l

I had the same issue using the same setup. The problem had to do with line endings. Sublime was creating files using Windows line endings. I changed them to Unix and pushed. Everything worked after that.