This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new e2817b7  Update breeze setup instruction (#20352)
e2817b7 is described below

commit e2817b7023d2d0c328a401a0be6c820c82f50f6d
Author: Ping Zhang <[email protected]>
AuthorDate: Thu Dec 16 13:32:44 2021 -0800

    Update breeze setup instruction (#20352)
    
    use $(brew --prefix) to get the path to gnu-getopt
    
    the prefix in newer version homebrew in Apple Silicon changed
---
 BREEZE.rst                             | 4 ++--
 scripts/ci/libraries/_sanity_checks.sh | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/BREEZE.rst b/BREEZE.rst
index b8d24ed..decbaf6 100644
--- a/BREEZE.rst
+++ b/BREEZE.rst
@@ -152,7 +152,7 @@ If you use bash, run this command and re-login:
 
 .. code-block:: bash
 
-    echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.bash_profile
+    echo 'export PATH="$(brew --prefix)/opt/gnu-getopt/bin:$PATH"' >> 
~/.bash_profile
     . ~/.bash_profile
 
 
@@ -160,7 +160,7 @@ If you use zsh, run this command and re-login:
 
 .. code-block:: bash
 
-    echo 'export PATH="/usr/local/opt/gnu-getopt/bin:$PATH"' >> ~/.zprofile
+    echo 'export PATH="$(brew --prefix)/opt/gnu-getopt/bin:$PATH"' >> 
~/.zprofile
     . ~/.zprofile
 
 
diff --git a/scripts/ci/libraries/_sanity_checks.sh 
b/scripts/ci/libraries/_sanity_checks.sh
index a78e0dd..3e7a1f5 100644
--- a/scripts/ci/libraries/_sanity_checks.sh
+++ b/scripts/ci/libraries/_sanity_checks.sh
@@ -90,17 +90,17 @@ Then link the gnu-getopt to become default as suggested by 
brew.
 
 If you use bash, you should run these commands:
 
-echo 'export PATH=\"/usr/local/opt/gnu-getopt/bin:\$PATH\"' >> ~/.bash_profile
+echo 'export PATH=\"$(brew --prefix)/opt/gnu-getopt/bin:\$PATH\"' >> 
~/.bash_profile
 . ~/.bash_profile
 
 If you use zsh, you should run these commands:
 
-echo 'export PATH=\"/usr/local/opt/gnu-getopt/bin:\$PATH\"' >> ~/.zprofile
+echo 'export PATH=\"$(brew --prefix)/opt/gnu-getopt/bin:\$PATH\"' >> 
~/.zprofile
 . ~/.zprofile
 
 Either source the profile file as shown above, or re-login afterwards.
 
-After that, your PATH variable should start with 
\"/usr/local/opt/gnu-getopt/bin\"
+After that, your PATH variable should start with \"$(brew 
--prefix)/opt/gnu-getopt/bin\"
 Your current path is ${PATH}
 ${COLOR_RESET}
 """

Reply via email to