You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ep...@apache.org on 2023/03/08 13:18:03 UTC
[airflow] 08/12: Variables set in variables.env are automatically exported (#28633)
This is an automated email from the ASF dual-hosted git repository.
ephraimanierobi pushed a commit to branch v2-5-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit 56b0b76b3af4c27be436d9aa051cf7b1b6cac268
Author: Jarek Potiuk <ja...@potiuk.com>
AuthorDate: Wed Dec 28 23:28:50 2022 +0100
Variables set in variables.env are automatically exported (#28633)
The variables set in variables.env were not automatically exported.
(cherry picked from commit 94b3b897e2f94902777c4b24fb10c915279d8967)
---
scripts/in_container/configure_environment.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/in_container/configure_environment.sh b/scripts/in_container/configure_environment.sh
index d9638b3219..6d0cbae41e 100644
--- a/scripts/in_container/configure_environment.sh
+++ b/scripts/in_container/configure_environment.sh
@@ -36,8 +36,10 @@ if [[ -d "${AIRFLOW_BREEZE_CONFIG_DIR}" && \
echo
echo "${COLOR_BLUE}Sourcing environment variables from ${VARIABLES_ENV_FILE} in ${AIRFLOW_BREEZE_CONFIG_DIR}${COLOR_RESET}"
echo
+ set -o allexport
# shellcheck disable=1090
source "${VARIABLES_ENV_FILE}"
+ set +o allexport
popd >/dev/null 2>&1 || exit 1
fi