aboutsummaryrefslogtreecommitdiff
path: root/R/create-rd.sh
diff options
context:
space:
mode:
authorzuotingbing <zuo.tingbing9@zte.com.cn>2017-04-02 15:31:13 +0100
committerSean Owen <sowen@cloudera.com>2017-04-02 15:31:13 +0100
commit76de2d115364aa6a1fdaacdfae05f0c695c953b8 (patch)
treef3800e3d639727aa3ee33bee9423e4bf1ce85d9d /R/create-rd.sh
parentd40cbb861898de881621d5053a468af570d72127 (diff)
downloadspark-76de2d115364aa6a1fdaacdfae05f0c695c953b8.tar.gz
spark-76de2d115364aa6a1fdaacdfae05f0c695c953b8.tar.bz2
spark-76de2d115364aa6a1fdaacdfae05f0c695c953b8.zip
[SPARK-20123][BUILD] SPARK_HOME variable might have spaces in it(e.g. $SPARK…
JIRA Issue: https://issues.apache.org/jira/browse/SPARK-20123 ## What changes were proposed in this pull request? If $SPARK_HOME or $FWDIR variable contains spaces, then use "./dev/make-distribution.sh --name custom-spark --tgz -Psparkr -Phadoop-2.7 -Phive -Phive-thriftserver -Pmesos -Pyarn" build spark will failed. ## How was this patch tested? manual tests Author: zuotingbing <zuo.tingbing9@zte.com.cn> Closes #17452 from zuotingbing/spark-bulid.
Diffstat (limited to 'R/create-rd.sh')
-rwxr-xr-xR/create-rd.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/R/create-rd.sh b/R/create-rd.sh
index d17e161739..ff622a41a4 100755
--- a/R/create-rd.sh
+++ b/R/create-rd.sh
@@ -29,9 +29,9 @@
set -o pipefail
set -e
-FWDIR="$(cd `dirname "${BASH_SOURCE[0]}"`; pwd)"
-pushd $FWDIR > /dev/null
-. $FWDIR/find-r.sh
+FWDIR="$(cd "`dirname "${BASH_SOURCE[0]}"`"; pwd)"
+pushd "$FWDIR" > /dev/null
+. "$FWDIR/find-r.sh"
# Generate Rd files if devtools is installed
-"$R_SCRIPT_PATH/"Rscript -e ' if("devtools" %in% rownames(installed.packages())) { library(devtools); devtools::document(pkg="./pkg", roclets=c("rd")) }'
+"$R_SCRIPT_PATH/Rscript" -e ' if("devtools" %in% rownames(installed.packages())) { library(devtools); devtools::document(pkg="./pkg", roclets=c("rd")) }'