Skip to content

Commit

Permalink
fix bash arg array processing in adam-submit
Browse files Browse the repository at this point in the history
  • Loading branch information
ryan-williams authored and heuermh committed Mar 22, 2016
1 parent a505bb9 commit 5d3cdb7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions bin/adam-submit
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ for ARG in "$@"; do
done

if [[ $DD == True ]]; then
SPARK_ARGS="${PRE_DD[@]}"
ADAM_ARGS="${POST_DD[@]}"
SPARK_ARGS=("${PRE_DD[@]}")
ADAM_ARGS=("${POST_DD[@]}")
else
SPARK_ARGS=()
ADAM_ARGS="${PRE_DD[@]}"
ADAM_ARGS=("${PRE_DD[@]}")
fi

# does the user have ADAM_OPTS set? if yes, then warn
Expand Down Expand Up @@ -99,6 +99,6 @@ echo "Using SPARK_SUBMIT=$SPARK_SUBMIT"
--class $ADAM_MAIN \
--conf spark.serializer=org.apache.spark.serializer.KryoSerializer \
--conf spark.kryo.registrator=org.bdgenomics.adam.serialization.ADAMKryoRegistrator \
$SPARK_ARGS \
$ADAM_CLI_JAR \
$ADAM_ARGS
"${SPARK_ARGS[@]}" \
"$ADAM_CLI_JAR" \
"${ADAM_ARGS[@]}"

0 comments on commit 5d3cdb7

Please sign in to comment.