Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions bin/spark-shell
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -88,4 +88,3 @@ main "$@"
# then reenable echo and propagate the code.
exit_status=$?
onExit