Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install.sh: set: line 2: illegal option - #371

Closed
susaboyyy opened this issue Jan 9, 2023 · 1 comment
Closed

install.sh: set: line 2: illegal option - #371

susaboyyy opened this issue Jan 9, 2023 · 1 comment

Comments

@susaboyyy
Copy link

i always failed when trying to build my docker image on my windows 11

here's my screen shoot:
image

i already copied the script [install.sh](https://github.com/cosmtrek/air/blob/master/install.sh)

here's my docker file:
image

anyone experienced this before?
thank you

@susaboyyy
Copy link
Author

SOLUTION
i finally found out the solution by typing this command sed -i 's/\r$//' filename

reference:
https://www.programmersought.com/article/73282501170/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant