[Hotfix] MacOS CI build

This commit is contained in:
Paulchen Panther 2020-12-20 13:59:49 +01:00 committed by GitHub
parent b345b9e657
commit fbd10e8865
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -19,12 +19,15 @@ function installAndUpgrade()
arr=("$@")
for i in "${arr[@]}";
do
list_output=`brew list | grep $i`
list_output=`brew list --formula | grep $i`
outdated_output=`brew outdated | grep $i`
if [[ ! -z "$list_output" ]]; then
if [[ ! -z "$outdated_output" ]]; then
echo "Outdated package: ${outdated_output}"
brew unlink ${outdated_output}
brew upgrade $i
brew link --overwrite $i
fi
else
brew install $i