Skip to content

Commit

Permalink
Use upgrade instead of reinstalling dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Mar 25, 2024
1 parent 66ec2c3 commit be5be09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/darwin.sh
Expand Up @@ -147,7 +147,7 @@ fix_dependencies() {
if [ "x$broken_deps_paths" != "x" ]; then
update_dependencies
IFS=" " read -r -a formulae <<< "$(echo "$broken_deps_paths" | tr '\n' ' ' | sed 's|/opt/||g' 2>&1)$php_formula"
brew reinstall "${formulae[@]}"
brew upgrade "${formulae[@]}"
brew link --force --overwrite "$php_formula" || true
broken_deps_paths=$(php -v 2>&1 | grep -Eo '/opt/[a-zA-Z0-9@\.]+')
if [ "x$broken_deps_paths" != "x" ]; then
Expand Down

0 comments on commit be5be09

Please sign in to comment.