mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 21:33:06 +07:00
Sync dependencies from tap in add_brew_extension
This commit is contained in:
parent
02cba443ad
commit
403191b6b6
@ -50,6 +50,8 @@ add_brew_extension() {
|
|||||||
if ! brew tap | grep -q shivammathur/extensions; then
|
if ! brew tap | grep -q shivammathur/extensions; then
|
||||||
brew tap --shallow shivammathur/extensions >/dev/null 2>&1
|
brew tap --shallow shivammathur/extensions >/dev/null 2>&1
|
||||||
fi
|
fi
|
||||||
|
tap_dir="$(brew --prefix)/Homebrew/Library/Taps"
|
||||||
|
sudo mv "$tap_dir"/shivammathur/homebrew-extensions/.github/deps/"$extension"/* "$tap_dir/homebrew/homebrew-core/Formula/" 2>/dev/null || true
|
||||||
brew install "$extension@$version" >/dev/null 2>&1
|
brew install "$extension@$version" >/dev/null 2>&1
|
||||||
sudo cp "$(brew --prefix)/opt/$extension@$version/$extension.so" "$ext_dir"
|
sudo cp "$(brew --prefix)/opt/$extension@$version/$extension.so" "$ext_dir"
|
||||||
add_extension_log "$extension" "Installed and enabled"
|
add_extension_log "$extension" "Installed and enabled"
|
||||||
|
Loading…
Reference in New Issue
Block a user