Skip to content

Commit

Permalink
Fix PECL extension installation on darwin
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 19, 2019
1 parent 601f50f commit db44db4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/install.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down
1 change: 1 addition & 0 deletions src/darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down

0 comments on commit db44db4

Please sign in to comment.