You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by po...@apache.org on 2021/03/23 03:26:10 UTC
[airflow] 23/34: Fixes unbound variable on MacOS (#14877)
This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch v2-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git
commit b41de1f2be4b99f373db26a875769042441c56a2
Author: Kaxil Naik <ka...@gmail.com>
AuthorDate: Thu Mar 18 14:02:31 2021 +0000
Fixes unbound variable on MacOS (#14877)
Without it I get:
```
$ ./breeze
./breeze: line 28: @: unbound variable
```
(cherry picked from commit 16f43605f3370f20611ba9e08b568ff8a7cd433d)
---
breeze | 2 ++
1 file changed, 2 insertions(+)
diff --git a/breeze b/breeze
index 7ffdebf..98a0fb7 100755
--- a/breeze
+++ b/breeze
@@ -22,6 +22,7 @@ set -euo pipefail
AIRFLOW_SOURCES="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
if [[ ${BREEZE_REDIRECT=} == "" ]]; then
+ set +u
mkdir -p "${AIRFLOW_SOURCES}"/logs
export BREEZE_REDIRECT="true"
if [[ "$(uname)" == "Darwin" ]]; then
@@ -29,6 +30,7 @@ if [[ ${BREEZE_REDIRECT=} == "" ]]; then
else
exec script --return --quiet "${AIRFLOW_SOURCES}"/logs/breeze.out -c "$(printf "%q " "${0}" "${@}")"
fi
+ set -u
fi
export AIRFLOW_SOURCES