Skip to content

Commit

Permalink
Merge pull request #859 from laserson/ADAM-857
Browse files Browse the repository at this point in the history
[ADAM-857] Corrected handling of env vars in bin scripts
  • Loading branch information
heuermh committed Oct 8, 2015
2 parents 365da79 + 5c275c6 commit 0b5ba78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/adam-shell
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ NEW_OPTIONS=$("$SCRIPT_DIR"/bin/append_to_option.py , --jars "$ADAM_CLI_JAR" "$@
echo "$NEW_OPTIONS"

if [ -z "$SPARK_HOME" ]; then
SPARK_SHELL=$(which spark-shell)
SPARK_SHELL=$(which spark-shell || echo)
else
SPARK_SHELL="$SPARK_HOME"/bin/spark-shell
fi
Expand Down
2 changes: 1 addition & 1 deletion bin/adam-submit
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ echo "Using ADAM_MAIN=$ADAM_MAIN"

# Find spark-submit script
if [ -z "$SPARK_HOME" ]; then
SPARK_SUBMIT=$(which spark-submit)
SPARK_SUBMIT=$(which spark-submit || echo)
else
SPARK_SUBMIT="$SPARK_HOME"/bin/spark-submit
fi
Expand Down

0 comments on commit 0b5ba78

Please sign in to comment.