Fix PECL extension installation on darwin

This commit is contained in:
Shivam Mathur 2019-09-19 15:54:11 +05:30
parent 601f50f55e
commit db44db4b97
3 changed files with 3 additions and 2 deletions

View File

@ -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 +

View File

@ -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

View File

@ -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 +