Skip to content

Commit

Permalink
source bash profile if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
FusRoman committed Jan 16, 2024
1 parent 96944db commit ca96618
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fink_mm/utils/fun_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,8 @@ def read_and_build_spark_submit(config, logger):
logger.error("Spark Admin config entry not found \n\t {}".format(e))
exit(1)

spark_submit = "source ~/.bash_profile \
spark_submit = "if test -f '~/.bash_profile'; then \
source ~/.bash_profile fi \
`which spark-submit` \
--master {} \
--conf spark.mesos.principal={} \
Expand Down

0 comments on commit ca96618

Please sign in to comment.