openIDP icon indicating copy to clipboard operation
openIDP copied to clipboard

build.sh: Syntax error line 137b

Open rajneeshsharma76 opened this issue 5 years ago • 5 comments

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 avatar Oct 17 '19 06:10 rajneeshsharma76

@rajneeshsharma76 Can you share your build.sh ?

Few questions :

  1. Have you modified build.sh ?
  2. Are you trying to run it without a tty ? i.e. from another script ?

jaskirat8 avatar Oct 17 '19 12:10 jaskirat8

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.

DimitrP avatar Nov 07 '19 05:11 DimitrP

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 avatar Nov 07 '19 10:11 jvinaya

@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.

DimitrP avatar Nov 08 '19 03:11 DimitrP

@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.

jvinaya avatar Nov 08 '19 12:11 jvinaya