mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-07 13:24:07 +07:00
Fix extensions.ts
This commit is contained in:
@ -24,6 +24,9 @@ export async function addExtensionDarwin(
|
||||
case /5\.6xdebug/.test(version_extension):
|
||||
install_command = 'sudo pecl install xdebug-2.5.5' + pipe;
|
||||
break;
|
||||
case /7\.0xdebug/.test(version_extension):
|
||||
install_command = 'sudo pecl install xdebug-2.9.0' + pipe;
|
||||
break;
|
||||
case /5\.6redis/.test(version_extension):
|
||||
install_command = 'sudo pecl install redis-2.2.8' + pipe;
|
||||
break;
|
||||
@ -120,11 +123,11 @@ export async function addExtensionLinux(
|
||||
break;
|
||||
// match 7.0xdebug..7.4xdebug
|
||||
case /^7\.[0-4]xdebug$/.test(version_extension):
|
||||
script = '\nupdate_extension xdebug 2.9.0' + pipe;
|
||||
script += '\nupdate_extension xdebug 2.9.0' + pipe;
|
||||
return;
|
||||
// match 7.0phalcon3..7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||
install_command =
|
||||
script +=
|
||||
'sh ' +
|
||||
path.join(__dirname, '../src/scripts/ext/phalcon.sh') +
|
||||
' ' +
|
||||
@ -132,7 +135,7 @@ export async function addExtensionLinux(
|
||||
' ' +
|
||||
version +
|
||||
pipe;
|
||||
break;
|
||||
return;
|
||||
default:
|
||||
install_command =
|
||||
'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php' +
|
||||
|
Reference in New Issue
Block a user