mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +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 +=
|
||||
'if [ $' +
|
||||
extension +
|
||||
'_found -eq 0 ]; then pecl install ' +
|
||||
'_found -eq 0 ]; then sudo pecl install ' +
|
||||
extension +
|
||||
' || echo "Couldn\'t find extension: ' +
|
||||
extension +
|
||||
|
@ -9,6 +9,7 @@ else
|
||||
fi
|
||||
ini_file=$(php --ini | grep "Loaded Configuration" | sed -e "s|.*:s*||" | sed "s/ //g")
|
||||
sudo chmod 777 $ini_file
|
||||
mkdir -p $(pecl config-get ext_dir)
|
||||
curl -sS https://getcomposer.org/installer | php
|
||||
chmod +x composer.phar
|
||||
mv composer.phar /usr/local/bin/composer
|
||||
|
@ -114,7 +114,7 @@ async function addExtension(extension_csv: string, version: string) {
|
||||
darwin +=
|
||||
'if [ $' +
|
||||
extension +
|
||||
'_found -eq 0 ]; then pecl install ' +
|
||||
'_found -eq 0 ]; then sudo pecl install ' +
|
||||
extension +
|
||||
' || echo "Couldn\'t find extension: ' +
|
||||
extension +
|
||||
|
Loading…
Reference in New Issue
Block a user