This is an automated email from the ASF dual-hosted git repository.
kaxilnaik pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 16f4360 Fixes unbound variable on MacOS (#14877)
16f4360 is described below
commit 16f43605f3370f20611ba9e08b568ff8a7cd433d
Author: Kaxil Naik <[email protected]>
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
```
---
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