mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
[Hotfix] MacOS CI build
This commit is contained in:
parent
b345b9e657
commit
fbd10e8865
@ -19,12 +19,15 @@ function installAndUpgrade()
|
|||||||
arr=("$@")
|
arr=("$@")
|
||||||
for i in "${arr[@]}";
|
for i in "${arr[@]}";
|
||||||
do
|
do
|
||||||
list_output=`brew list | grep $i`
|
list_output=`brew list --formula | grep $i`
|
||||||
outdated_output=`brew outdated | grep $i`
|
outdated_output=`brew outdated | grep $i`
|
||||||
|
|
||||||
if [[ ! -z "$list_output" ]]; then
|
if [[ ! -z "$list_output" ]]; then
|
||||||
if [[ ! -z "$outdated_output" ]]; then
|
if [[ ! -z "$outdated_output" ]]; then
|
||||||
|
echo "Outdated package: ${outdated_output}"
|
||||||
|
brew unlink ${outdated_output}
|
||||||
brew upgrade $i
|
brew upgrade $i
|
||||||
|
brew link --overwrite $i
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
brew install $i
|
brew install $i
|
||||||
|
Loading…
x
Reference in New Issue
Block a user