-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
/wait-for-it.sh: 75: /wait-for-it.sh: Syntax error: "(" unexpected (expecting ";;") #69
Comments
Hello @ChadLei, I had the same issue here but it was because I was executing the command with $ sh ./wait-for-it.sh www.google.com:80 I removed the $ ./wait-for-it.sh www.google.com:80 |
great tip thanks! |
I have a same problem. Why I mast run sh command. |
@HasBert You need install bash. Try this: apk add --no-cache bash
./wait-for-it.sh www.google.com:80 |
it works but the correct command is: There was a typo in @warthur1214 suggestion cause of two add |
@identitymonk sorry to puzzle you. I forgot to remove 'add' |
Would it not be cleaner to make the script compatible with sh rather than enforce bash on minimalistic containers? Any thoughts? |
If you get this error while being sure you're running this with |
maybe this will work: #80 |
The ash script worked! |
/wait-for-it.sh: 75: /wait-for-it.sh: Syntax error: "(" unexpected (expecting ";;")
error when trying to build with a openjdk:8-jre image
The text was updated successfully, but these errors were encountered: