diff options
author | Sarah Gerweck <sarah.a180@gmail.com> | 2014-08-03 19:47:05 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-08-03 19:47:05 -0700 |
commit | 5507dd8e18fbb52d5e0c64a767103b2418cb09c6 (patch) | |
tree | 6e5d53fe4176725ad5dbee12cbed935ee5f913c0 /make-distribution.sh | |
parent | 6ba6c3ebfe9a47351a50e45271e241140b09bf10 (diff) | |
download | spark-5507dd8e18fbb52d5e0c64a767103b2418cb09c6.tar.gz spark-5507dd8e18fbb52d5e0c64a767103b2418cb09c6.tar.bz2 spark-5507dd8e18fbb52d5e0c64a767103b2418cb09c6.zip |
Fix some bugs with spaces in directory name.
Any time you use the directory name (`FWDIR`) it needs to be surrounded
in quotes. If you're also using wildcards, you can safely put the quotes
around just `$FWDIR`.
Author: Sarah Gerweck <sarah.a180@gmail.com>
Closes #1756 from sarahgerweck/folderSpaces and squashes the following commits:
732629d [Sarah Gerweck] Fix some bugs with spaces in directory name.
Diffstat (limited to 'make-distribution.sh')
-rwxr-xr-x | make-distribution.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/make-distribution.sh b/make-distribution.sh index 1441497b39..f7a6a9d838 100755 --- a/make-distribution.sh +++ b/make-distribution.sh @@ -168,22 +168,22 @@ mkdir -p "$DISTDIR/lib" echo "Spark $VERSION$GITREVSTRING built for Hadoop $SPARK_HADOOP_VERSION" > "$DISTDIR/RELEASE" # Copy jars -cp $FWDIR/assembly/target/scala*/*assembly*hadoop*.jar "$DISTDIR/lib/" -cp $FWDIR/examples/target/scala*/spark-examples*.jar "$DISTDIR/lib/" +cp "$FWDIR"/assembly/target/scala*/*assembly*hadoop*.jar "$DISTDIR/lib/" +cp "$FWDIR"/examples/target/scala*/spark-examples*.jar "$DISTDIR/lib/" # Copy example sources (needed for python and SQL) mkdir -p "$DISTDIR/examples/src/main" -cp -r $FWDIR/examples/src/main "$DISTDIR/examples/src/" +cp -r "$FWDIR"/examples/src/main "$DISTDIR/examples/src/" if [ "$SPARK_HIVE" == "true" ]; then - cp $FWDIR/lib_managed/jars/datanucleus*.jar "$DISTDIR/lib/" + cp "$FWDIR"/lib_managed/jars/datanucleus*.jar "$DISTDIR/lib/" fi # Copy license and ASF files cp "$FWDIR/LICENSE" "$DISTDIR" cp "$FWDIR/NOTICE" "$DISTDIR" -if [ -e $FWDIR/CHANGES.txt ]; then +if [ -e "$FWDIR"/CHANGES.txt ]; then cp "$FWDIR/CHANGES.txt" "$DISTDIR" fi |