Skip to content
Snippets Groups Projects
Commit a6fed750 authored by André Anjos's avatar André Anjos :speech_balloon:
Browse files

[update-ci.sh] Add support for m1 macs

parent 4788fa9f
No related branches found
No related tags found
No related merge requests found
Pipeline #47168 passed
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
# Update CI installation # Update CI installation
echo "Updating homebrew..." echo "Updating homebrew..."
brew=/usr/local/bin/brew brew=/usr/local/bin/brew
if [ ! -x ${brew} ]; then
brew=/opt/homebrew/bin/brew
fi
${brew} update ${brew} update
${brew} upgrade ${brew} upgrade
...@@ -20,4 +23,8 @@ function pipupdate() { ...@@ -20,4 +23,8 @@ function pipupdate() {
${1} list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 ${1} install -U; ${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}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment