From 5d95605b57f2a162bd481c4139d1b441c59ff3f3 Mon Sep 17 00:00:00 2001 From: Andre Anjos <andre.dos.anjos@gmail.com> Date: Sun, 24 Jan 2021 14:22:44 +0100 Subject: [PATCH] [doc/macos-ci-install/update-ci] Fix macm1 upgrade instructions --- doc/macos-ci-install/update-ci.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/doc/macos-ci-install/update-ci.sh b/doc/macos-ci-install/update-ci.sh index 14b411bb..627cc523 100644 --- a/doc/macos-ci-install/update-ci.sh +++ b/doc/macos-ci-install/update-ci.sh @@ -3,8 +3,10 @@ # Update CI installation echo "Updating homebrew..." brew=/usr/local/bin/brew +pip=/usr/local/bin/pip3 if [ ! -x ${brew} ]; then brew=/opt/homebrew/bin/brew + pip=/opt/homebrew/bin/pip3 fi ${brew} update ${brew} upgrade @@ -23,8 +25,4 @@ function pipupdate() { ${1} list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 ${1} install -U; } -pip=/usr/local/bin/pip3 -if [ ! -x ${pip} ]; then - brew=/opt/homebrew/bin/pip3 -fi pipupdate ${pip} -- GitLab