Skip to content

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