Thanks - fixed in svn.
Andy
On 21/03/12 16:29, Leo Simons wrote:
./fuseki-server: line 21: [:
/Users/lsimons/Downloads/jena-fuseki-0.2.1-incubating: binary operator
expected
17:26:28 INFO Server :: Dataset: in-memory
17:26:29 INFO Server :: Dataset path = /foo
17:26:29 INFO Server :: Fuseki 0.2.1-incubating
2012-03-16T15:08:53+0000
17:26:29 INFO Server :: Jetty 7.x.y-SNAPSHOT
17:26:29 INFO Server :: Started 2012/03/21 17:26:29 CET
on port 3030
export FUSEKI_HOME=${FUSEKI_HOME:-$PWD}
if [ ! -e $FUSEKI_HOME ]
then
echo "$FUSEKI_HOME does not exist" 1>&2
exit 1
fi
This is just a check ... the actual use of FUSEKI_HOME is in quotes
later so it works.
JAR1="$FUSEKI_HOME/fuseki-server.jar"
JAR2="$FUSEKI_HOME/jena-fuseki-*-server.jar"
if $FUSEKI_HOME is not set and there is a space in the $PWD bash
throws a "binary operator expected" error. Putting quotes around the
argument fixes it. Since the script doesn't use "set -e", it does end
up working, it seems.
In general, these bash scripts look like they need quotes around their
variables.
Sorry for no jira, I'm in a rush to review the release and lost my
jira password :)
cheers,
Leo