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

fix unknown operator issue #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix unknown operator issue #18

wants to merge 1 commit into from

Conversation

Sild
Copy link

@Sild Sild commented Jul 31, 2016

Hi, I have tried to run your examples and face to an warning message:

sild@:~/jbehave-web/examples/trader-runner-selenium $ ./jetty-server.sh 
./jetty-server.sh: 13: [: unexpected operator
[INFO] Scanning for projects...
Downloading: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml (13 KB at 19.4 KB/sec)
Downloaded: https://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata.xml (20 KB at 29.4 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE

It's caused by specified shabang: sh does not support [] operator.

In my case, MODULE was not set properly so I can not run your example "out of the box".

My solution will work correctly for any unix operation system.
Thanks.

@Sild
Copy link
Author

Sild commented Jul 31, 2016

As another solution you can specify shabash as #!/bin/bash. But my solution is more portable.

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

Successfully merging this pull request may close these issues.

1 participant