You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/07/27 04:32:04 UTC
[GitHub] [airflow] uranusjr commented on issue #25330: User defined `env` clobbers PATH, BashOperator can't find bash
uranusjr commented on issue #25330:
URL: https://github.com/apache/airflow/issues/25330#issuecomment-1196254637
The easiest fix is likely to find Bash before `PATH` gets overridden. In `execute`, we can first resolve `bash` with `shutil.which`, and then call `run_command` with that resolved bash path (which should be absolute).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org