Skip to content
This repository was archived by the owner on Apr 3, 2024. It is now read-only.

Commit 0e8fb85

Browse files
potiukashb
authored andcommitted
Fixes recent scripting breeze fix to work also with zsh (apache#14787)
The BASH variable introduced in apache#14579 is not set when the main shell is zsh on MacOS (which is the default) this PR changes it so that the output of `command -v bash` is used instead. Fixes apache#14754 (cherry picked from commit c613384)
1 parent 899a75d commit 0e8fb85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

breeze

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ if [[ ${BREEZE_REDIRECT=} == "" ]]; then
2525
mkdir -p "${AIRFLOW_SOURCES}"/logs
2626
export BREEZE_REDIRECT="true"
2727
if [[ "$(uname)" == "Darwin" ]]; then
28-
exec script -q "${AIRFLOW_SOURCES}"/logs/breeze.out "$BASH" -c "$(printf "%q " "${0}" "${@}")"
28+
exec script -q "${AIRFLOW_SOURCES}"/logs/breeze.out "$(command -v bash)" -c "$(printf "%q " "${0}" "${@}")"
2929
else
3030
exec script --return --quiet "${AIRFLOW_SOURCES}"/logs/breeze.out -c "$(printf "%q " "${0}" "${@}")"
3131
fi

0 commit comments

Comments
 (0)