mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 13:23:05 +07:00
Fix PECL extension installation on darwin
This commit is contained in:
parent
601f50f55e
commit
db44db4b97
@ -126,7 +126,7 @@ function addExtension(extension_csv, version) {
|
|||||||
darwin +=
|
darwin +=
|
||||||
'if [ $' +
|
'if [ $' +
|
||||||
extension +
|
extension +
|
||||||
'_found -eq 0 ]; then pecl install ' +
|
'_found -eq 0 ]; then sudo pecl install ' +
|
||||||
extension +
|
extension +
|
||||||
' || echo "Couldn\'t find extension: ' +
|
' || echo "Couldn\'t find extension: ' +
|
||||||
extension +
|
extension +
|
||||||
|
@ -9,6 +9,7 @@ else
|
|||||||
fi
|
fi
|
||||||
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
||||||
sudo chmod 777 $ini_file
|
sudo chmod 777 $ini_file
|
||||||
|
mkdir -p $(pecl config-get ext_dir)
|
||||||
curl -sS https://getcomposer.org/installer | php
|
curl -sS https://getcomposer.org/installer | php
|
||||||
chmod +x composer.phar
|
chmod +x composer.phar
|
||||||
mv composer.phar /usr/local/bin/composer
|
mv composer.phar /usr/local/bin/composer
|
||||||
|
@ -114,7 +114,7 @@ async function addExtension(extension_csv: string, version: string) {
|
|||||||
darwin +=
|
darwin +=
|
||||||
'if [ $' +
|
'if [ $' +
|
||||||
extension +
|
extension +
|
||||||
'_found -eq 0 ]; then pecl install ' +
|
'_found -eq 0 ]; then sudo pecl install ' +
|
||||||
extension +
|
extension +
|
||||||
' || echo "Couldn\'t find extension: ' +
|
' || echo "Couldn\'t find extension: ' +
|
||||||
extension +
|
extension +
|
||||||
|
Loading…
Reference in New Issue
Block a user