From 175a03a9d7fb07aaae683556c9eeab085e6da3b0 Mon Sep 17 00:00:00 2001 From: philwalk Date: Fri, 22 Nov 2024 10:38:22 -0700 Subject: [PATCH] more universal terminal / pip test for bin/load-spark-env.sh --- bin/load-spark-env.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/load-spark-env.sh b/bin/load-spark-env.sh index 861ebbbcb7a3..4ab35ad28751 100644 --- a/bin/load-spark-env.sh +++ b/bin/load-spark-env.sh @@ -65,6 +65,6 @@ export SPARK_SCALA_VERSION=2.13 #fi # Append jline option to enable the Beeline process to run in background. -if [[ ( ! $(ps -o stat= -p $$) =~ "+" ) && ! ( -p /dev/stdin ) ]]; then +if [ -e /usr/bin/tty -a "`tty`" != "not a tty" -a ! -p /dev/stdin ]; then export SPARK_BEELINE_OPTS="$SPARK_BEELINE_OPTS -Djline.terminal=jline.UnsupportedTerminal" fi