From c0b4c3b6cf1b2ce00970e11eebc663fe2fb2fd1a Mon Sep 17 00:00:00 2001 From: nam-cern <40789065+nam-cern@users.noreply.github.com> Date: Sat, 21 Jul 2018 00:12:25 +0200 Subject: [PATCH] Use absolute path to get to thirdparty dir (#2442) * Use absolute path to get to thirdparty dir In case this script is executed from a different directory than the Ray's directory, the `pushd` will fail. This commit uses absolute path to `thirdparty` directory. * Update setup_thirdparty.sh --- setup_thirdparty.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup_thirdparty.sh b/setup_thirdparty.sh index 430e5d86d..c6f00930d 100755 --- a/setup_thirdparty.sh +++ b/setup_thirdparty.sh @@ -4,7 +4,7 @@ set -x # Cause the script to exit if a single command fails. set -e -TP_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd) +ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd) if [[ -z "$1" ]]; then PYTHON_EXECUTABLE=`which python` @@ -18,10 +18,10 @@ if [[ -n "$2" ]]; then LANGUAGE=$2 fi -$TP_DIR/thirdparty/scripts/setup.sh $PYTHON_EXECUTABLE $LANGUAGE +$ROOT_DIR/thirdparty/scripts/setup.sh $PYTHON_EXECUTABLE $LANGUAGE if [[ "$LANGUAGE" == "java" ]]; then - pushd thirdparty/build/arrow/java + pushd $ROOT_DIR/thirdparty/build/arrow/java mvn clean install -pl plasma -am -Dmaven.test.skip popd fi