From 56b94078481786a0b0bbcbe3971ee4ef0326d694 Mon Sep 17 00:00:00 2001 From: Haoyuan Li Date: Tue, 10 Sep 2013 23:03:09 -0700 Subject: fix run-example script --- run-example | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'run-example') diff --git a/run-example b/run-example index 24d83ba5cf..85557d73d1 100755 --- a/run-example +++ b/run-example @@ -39,14 +39,14 @@ fi # to avoid the -sources and -doc packages that are built by publish-local. EXAMPLES_DIR="$FWDIR"/examples SPARK_EXAMPLES_JAR="" -if [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T].jar ]; then +if [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T]*.jar ]; then # Use the JAR from the SBT build - export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T].jar` + export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T]*.jar` fi -if [ -e "$EXAMPLES_DIR"/target/spark-examples*[0-9T].jar ]; then +if [ -e "$EXAMPLES_DIR"/target/spark-examples*[0-9T]*.jar ]; then # Use the JAR from the Maven build # TODO: this also needs to become an assembly! - export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/spark-examples*[0-9T].jar` + export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/spark-examples*[0-9T]*.jar` fi if [[ -z $SPARK_EXAMPLES_JAR ]]; then echo "Failed to find Spark examples assembly in $FWDIR/examples/target" >&2 -- cgit v1.2.3 From 45d964b60666a794ce8d6cc4e8451a3447327499 Mon Sep 17 00:00:00 2001 From: Haoyuan Li Date: Tue, 10 Sep 2013 23:18:22 -0700 Subject: better expression --- run-example | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'run-example') diff --git a/run-example b/run-example index 85557d73d1..08ec717ca5 100755 --- a/run-example +++ b/run-example @@ -39,14 +39,14 @@ fi # to avoid the -sources and -doc packages that are built by publish-local. EXAMPLES_DIR="$FWDIR"/examples SPARK_EXAMPLES_JAR="" -if [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T]*.jar ]; then +if [ -e "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar ]; then # Use the JAR from the SBT build - export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9T]*.jar` + export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/scala-$SCALA_VERSION/*assembly*[0-9Tg].jar` fi -if [ -e "$EXAMPLES_DIR"/target/spark-examples*[0-9T]*.jar ]; then +if [ -e "$EXAMPLES_DIR"/target/spark-examples*[0-9Tg].jar ]; then # Use the JAR from the Maven build # TODO: this also needs to become an assembly! - export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/spark-examples*[0-9T]*.jar` + export SPARK_EXAMPLES_JAR=`ls "$EXAMPLES_DIR"/target/spark-examples*[0-9Tg].jar` fi if [[ -z $SPARK_EXAMPLES_JAR ]]; then echo "Failed to find Spark examples assembly in $FWDIR/examples/target" >&2 -- cgit v1.2.3