From a6fed7502a498a02426ac608eaa1f8e606cb2906 Mon Sep 17 00:00:00 2001
From: Andre Anjos <andre.dos.anjos@gmail.com>
Date: Mon, 18 Jan 2021 22:56:06 +0100
Subject: [PATCH] [update-ci.sh] Add support for m1 macs

---
 doc/macos-ci-install/update-ci.sh | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/doc/macos-ci-install/update-ci.sh b/doc/macos-ci-install/update-ci.sh
index 70a569b1..14b411bb 100644
--- a/doc/macos-ci-install/update-ci.sh
+++ b/doc/macos-ci-install/update-ci.sh
@@ -3,6 +3,9 @@
 # Update CI installation
 echo "Updating homebrew..."
 brew=/usr/local/bin/brew
+if [ ! -x ${brew} ]; then
+    brew=/opt/homebrew/bin/brew
+fi
 ${brew} update
 ${brew} upgrade
 
@@ -20,4 +23,8 @@ function pipupdate() {
   ${1} list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1  | xargs -n1 ${1} install -U;
 }
 
-pipupdate /usr/local/bin/pip3
+pip=/usr/local/bin/pip3
+if [ ! -x ${pip} ]; then
+    brew=/opt/homebrew/bin/pip3
+fi
+pipupdate ${pip}
-- 
GitLab