mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix patching brew
This commit is contained in:
parent
7a9bf9ecf6
commit
36d70683e9
@ -142,10 +142,10 @@ link_libraries() {
|
|||||||
# Patch brew to overwrite packages.
|
# Patch brew to overwrite packages.
|
||||||
patch_brew() {
|
patch_brew() {
|
||||||
formula_installer="$brew_repo"/Library/Homebrew/formula_installer.rb
|
formula_installer="$brew_repo"/Library/Homebrew/formula_installer.rb
|
||||||
code=" keg.link(verbose: verbose?"
|
code=" keg.link\(verbose: verbose\?"
|
||||||
sudo sed -i '' "s/$code)/$code, overwrite: true)/" "$formula_installer"
|
sudo sed -Ei '' "s/$code.*/$code, overwrite: true\)/" "$formula_installer"
|
||||||
# shellcheck disable=SC2064
|
# shellcheck disable=SC2064
|
||||||
trap "sudo sed -i '' 's/$code, overwrite: true)/$code)/' $formula_installer" exit
|
trap "sudo sed -Ei '' 's/$code.*/$code, overwrite: overwrite?\)/' $formula_installer" exit
|
||||||
}
|
}
|
||||||
|
|
||||||
# Helper function to update the dependencies.
|
# Helper function to update the dependencies.
|
||||||
|
Loading…
Reference in New Issue
Block a user