openIDP
openIDP copied to clipboard
build.sh: Syntax error line 137b
Describe the bug A clear and concise description of what the bug is. after Running sh build.sh getting this error build.sh: 137: build.sh: Syntax error: "do" unexpected (expecting "fi") i am using master branch
@rajneeshsharma76 Can you share your build.sh ?
Few questions :
- Have you modified build.sh ?
- Are you trying to run it without a tty ? i.e. from another script ?
I also have this issue. I was trying to install IDP on Ubuntu. Two weeks ago this error was on line 137. Now it indicates line 138. I run it as # sh build.sh. Tried to execute on master and on Release_1.5.0 branches. No luck.
Hi @rajneeshsharma76 @DmitryPershyn , Please execute the script using the command 'bash build.sh' instead of 'sh build.sh'. This should solve the issue.
Attaching link for the reference - https://serverfault.com/questions/387607/syntax-error-near-unexpected-token-fi
@jvinaya , I appreciate your help. It really worked. I executed the build.sh against Release_1.5.0 branch. It did not loaded dependencies. What branch would you recommend to use ? Thank you.
@DmitryPershyn , If you have open internet access in your server, it should automatically download the dependencies. If you're behind secured network, then make sure you have settings.xml in /root/.m2/ folder which will provide all configuration for maven.