diff options
Diffstat (limited to 'bin/load-spark-env.sh')
-rw-r--r-- | bin/load-spark-env.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/load-spark-env.sh b/bin/load-spark-env.sh index 493d3785a0..6d4231b204 100644 --- a/bin/load-spark-env.sh +++ b/bin/load-spark-env.sh @@ -25,9 +25,9 @@ if [ -z "$SPARK_ENV_LOADED" ]; then export SPARK_ENV_LOADED=1 # Returns the parent of the directory this script lives in. - parent_dir="$(cd `dirname $0`/..; pwd)" + parent_dir="$(cd "`dirname "$0"`"/..; pwd)" - user_conf_dir=${SPARK_CONF_DIR:-"$parent_dir/conf"} + user_conf_dir="${SPARK_CONF_DIR:-"$parent_dir"/conf}" if [ -f "${user_conf_dir}/spark-env.sh" ]; then # Promote all variable declarations to environment (exported) variables |