mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-01 02:14:16 +07:00
Install PHP only if not found and support 7.4.0RC2
This commit is contained in:
@ -1,8 +1,11 @@
|
||||
echo $1
|
||||
brew unlink php
|
||||
brew tap exolnet/homebrew-deprecated
|
||||
brew install php@$1
|
||||
brew link --force --overwrite php@$1
|
||||
version=$(php-config --version | cut -c 1-3)
|
||||
if [ "$version" != "$1" ]; then
|
||||
brew tap exolnet/homebrew-deprecated;
|
||||
brew unlink php;
|
||||
brew install php@$1;
|
||||
brew link --force --overwrite php@$1;
|
||||
fi
|
||||
|
||||
curl -sS https://getcomposer.org/installer | php
|
||||
chmod +x composer.phar
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
|
Reference in New Issue
Block a user