Remove update_formulae in darwin.sh

This commit is contained in:
Shivam Mathur 2020-07-07 00:47:45 +05:30
parent 3cd5c7fd3a
commit e763fddf01
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -163,21 +163,8 @@ add_pecl() {
add_log "$tick" "PECL" "Added"
}
# Function to fetch updated formulas
update_formulae() {
brew_dir=$(brew --prefix)/Homebrew/Library/Taps/homebrew/homebrew-core/Formula
for formula in httpd pkg-config apr apr-util argon2 aspell autoconf bison curl-openssl freetds freetype gettext glib gmp icu4c jpeg krb5 libffi libpng libpq libsodium libzip oniguruma openldap openssl@1.1 re2c sqlite tidyp unixodbc webp; do
sudo curl -o "$brew_dir"/"$formula".rb -sSL https://raw.githubusercontent.com/Homebrew/homebrew-core/master/Formula/"$formula".rb &
to_wait+=( $! )
done
wait "${to_wait[@]}"
}
# Function to setup PHP and composer
setup_php() {
if [ "$version" = "8.0" ]; then
update_formulae
fi
export HOMEBREW_NO_INSTALL_CLEANUP=TRUE
brew tap --shallow shivammathur/homebrew-php
brew install shivammathur/php/php@"$version"