aboutsummaryrefslogtreecommitdiff
path: root/bin/spark-shell
diff options
context:
space:
mode:
Diffstat (limited to 'bin/spark-shell')
-rwxr-xr-xbin/spark-shell8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/spark-shell b/bin/spark-shell
index c158683ab3..850e9507ec 100755
--- a/bin/spark-shell
+++ b/bin/spark-shell
@@ -28,15 +28,15 @@ esac
# Enter posix mode for bash
set -o posix
+## Global script variables
+FWDIR="$(cd `dirname $0`/..; pwd)"
+
if [[ "$@" = *--help ]] || [[ "$@" = *-h ]]; then
echo "Usage: ./bin/spark-shell [options]"
- ./bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
+ $FWDIR/bin/spark-submit --help 2>&1 | grep -v Usage 1>&2
exit 0
fi
-## Global script variables
-FWDIR="$(cd `dirname $0`/..; pwd)"
-
function main(){
if $cygwin; then
# Workaround for issue involving JLine and Cygwin