Commit a6fed750 authored by André Anjos's avatar André Anjos 💬

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

parent 4788fa9f
Pipeline #47168 passed with stages
in 14 minutes and 42 seconds
......@@ -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}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment