aboutsummaryrefslogtreecommitdiff
path: root/R
diff options
context:
space:
mode:
authorShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-06-03 17:02:16 -0700
committerShivaram Venkataraman <shivaram@cs.berkeley.edu>2015-06-03 17:02:16 -0700
commit0576c3c4ff9d9bbff208e915bee1ac0d4956548c (patch)
tree636319ffda87da9a081ce2cddf93e8f54b0ee051 /R
parent51898b5158ac7e7e67b0539bc062c9c16ce9a7ce (diff)
downloadspark-0576c3c4ff9d9bbff208e915bee1ac0d4956548c.tar.gz
spark-0576c3c4ff9d9bbff208e915bee1ac0d4956548c.tar.bz2
spark-0576c3c4ff9d9bbff208e915bee1ac0d4956548c.zip
[SPARK-8084] [SPARKR] Make SparkR scripts fail on error
cc shaneknapp pwendell JoshRosen Author: Shivaram Venkataraman <shivaram@cs.berkeley.edu> Closes #6623 from shivaram/SPARK-8084 and squashes the following commits: 0ec5b26 [Shivaram Venkataraman] Make SparkR scripts fail on error
Diffstat (limited to 'R')
-rwxr-xr-xR/create-docs.sh3
-rwxr-xr-xR/install-dev.sh2
2 files changed, 5 insertions, 0 deletions
diff --git a/R/create-docs.sh b/R/create-docs.sh
index 4194172a2e..af47c0863b 100755
--- a/R/create-docs.sh
+++ b/R/create-docs.sh
@@ -23,6 +23,9 @@
# After running this script the html docs can be found in
# $SPARK_HOME/R/pkg/html
+set -o pipefail
+set -e
+
# Figure out where the script is
export FWDIR="$(cd "`dirname "$0"`"; pwd)"
pushd $FWDIR
diff --git a/R/install-dev.sh b/R/install-dev.sh
index 55ed6f4be1..b9e2527035 100755
--- a/R/install-dev.sh
+++ b/R/install-dev.sh
@@ -26,6 +26,8 @@
# NOTE(shivaram): Right now we use $SPARK_HOME/R/lib to be the installation directory
# to load the SparkR package on the worker nodes.
+set -o pipefail
+set -e
FWDIR="$(cd `dirname $0`; pwd)"
LIB_DIR="$FWDIR/lib"