Skip to content

Commit

Permalink
Modified util.sh to enable to use option including white spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed Aug 9, 2014
1 parent 28a374e commit 513ad2e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/utils.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function gatherSparkSubmitOpts() {
SUBMISSION_OPTS=()
APPLICATION_OPTS=()
while (($#)); do
case $1 in
case "$1" in
--master | --deploy-mode | --class | --name | --jars | --py-files | --files | \
--conf | --properties-file | --driver-memory | --driver-java-options | \
--driver-library-path | --driver-class-path | --executor-memory | --driver-cores | \
Expand All @@ -39,16 +39,16 @@ function gatherSparkSubmitOpts() {
"$SUBMIT_USAGE_FUNCTION"
exit 1;
fi
SUBMISSION_OPTS+=($1); shift
SUBMISSION_OPTS+=($1); shift
SUBMISSION_OPTS+=("$1"); shift
SUBMISSION_OPTS+=("$1"); shift
;;

--verbose | -v | --supervise)
SUBMISSION_OPTS+=($1); shift
SUBMISSION_OPTS+=("$1"); shift
;;

*)
APPLICATION_OPTS+=($1); shift
APPLICATION_OPTS+=("$1"); shift
;;
esac
done
Expand Down

0 comments on commit 513ad2e

Please sign in to comment.