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

build.sh: Syntax error line 137b #43

Open
rajneeshsharma76 opened this issue Oct 17, 2019 · 5 comments
Open

build.sh: Syntax error line 137b #43

rajneeshsharma76 opened this issue Oct 17, 2019 · 5 comments

Comments

@rajneeshsharma76
Copy link

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

@jaskirat8
Copy link
Contributor

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

@DimitrP
Copy link

DimitrP commented Nov 7, 2019

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.

@jvinaya
Copy link

jvinaya commented Nov 7, 2019

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

@DimitrP
Copy link

DimitrP commented Nov 8, 2019

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

@jvinaya
Copy link

jvinaya commented Nov 8, 2019

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

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

4 participants