Skip to content

Commit 29e768b

Browse files
committed
Code Review
1 parent 5cb6f7d commit 29e768b

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

bin/spark-class

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,10 @@ fi
131131

132132
if [[ "$1" =~ org.apache.spark.tools.* ]]; then
133133
if test -z "$SPARK_TOOLS_JAR"; then
134-
cat <<EOF 1>&2
135-
Failed to find Spark Tools Jar in $FWDIR/tools/target/scala-$SCALA_VERSION/
136-
You need to build spark before running $1.
137-
EOF
138-
exit 1
139-
fi
134+
echo "Failed to find Spark Tools Jar in $FWDIR/tools/target/scala-$SCALA_VERSION/" 1>&2
135+
echo "You need to build spark before running $1." 1>&2
136+
exit 1
137+
fi
140138
CLASSPATH="$CLASSPATH:$SPARK_TOOLS_JAR"
141139
fi
142140

0 commit comments

Comments
 (0)