diff options
author | Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com> | 2015-02-12 14:44:21 -0800 |
---|---|---|
committer | Andrew Or <andrew@databricks.com> | 2015-02-12 14:44:21 -0800 |
commit | 629d0143eeb3c153dac9c65e7b556723c6b4bfc7 (patch) | |
tree | 096602782e82b38abac6a27eca4bbc12f78f7d31 /bin/run-example | |
parent | 9c8076502f0c2c6a6dcdc6720d16b34132dfc06a (diff) | |
download | spark-629d0143eeb3c153dac9c65e7b556723c6b4bfc7.tar.gz spark-629d0143eeb3c153dac9c65e7b556723c6b4bfc7.tar.bz2 spark-629d0143eeb3c153dac9c65e7b556723c6b4bfc7.zip |
[SPARK-5765][Examples]Fixed word split problem in run-example and compute-classpath
Author: Venkata Ramana G <ramana.gollamudihuawei.com>
Author: Venkata Ramana Gollamudi <ramana.gollamudi@huawei.com>
Closes #4561 from gvramana/word_split and squashes the following commits:
285c8d4 [Venkata Ramana Gollamudi] Fixed word split problem in run-example and compute-classpath
Diffstat (limited to 'bin/run-example')
-rwxr-xr-x | bin/run-example | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/run-example b/bin/run-example index c567acf9a6..a106411392 100755 --- a/bin/run-example +++ b/bin/run-example @@ -42,7 +42,7 @@ fi JAR_COUNT=0 -for f in ${JAR_PATH}/spark-examples-*hadoop*.jar; do +for f in "${JAR_PATH}"/spark-examples-*hadoop*.jar; do if [[ ! -e "$f" ]]; then echo "Failed to find Spark examples assembly in $FWDIR/lib or $FWDIR/examples/target" 1>&2 echo "You need to build Spark before running this program" 1>&2 @@ -54,7 +54,7 @@ done if [ "$JAR_COUNT" -gt "1" ]; then echo "Found multiple Spark examples assembly jars in ${JAR_PATH}" 1>&2 - ls ${JAR_PATH}/spark-examples-*hadoop*.jar 1>&2 + ls "${JAR_PATH}"/spark-examples-*hadoop*.jar 1>&2 echo "Please remove all but one jar." 1>&2 exit 1 fi |