mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 11:51:07 +07:00
Fix xdebug and phalcon logs on linux
This commit is contained in:
parent
d2b233e45f
commit
f23ae2e6f7
12
dist/index.js
vendored
12
dist/index.js
vendored
@ -2670,18 +2670,24 @@ function addExtensionLinux(extension_csv, version, pipe) {
|
||||
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 +
|
||||
'\n' +
|
||||
(yield utils.addLog('$tick', 'xdebug', 'Enabled', 'linux'));
|
||||
return;
|
||||
// match 7.0phalcon3..7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||
script +=
|
||||
'sh ' +
|
||||
'\nsh ' +
|
||||
path.join(__dirname, '../src/scripts/ext/phalcon.sh') +
|
||||
' ' +
|
||||
extension +
|
||||
' ' +
|
||||
version +
|
||||
pipe;
|
||||
pipe +
|
||||
'\n' +
|
||||
(yield utils.addLog('$tick', extension, 'Installed and enabled', 'linux'));
|
||||
return;
|
||||
default:
|
||||
install_command =
|
||||
|
@ -123,18 +123,29 @@ 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 +
|
||||
'\n' +
|
||||
(await utils.addLog('$tick', 'xdebug', 'Enabled', 'linux'));
|
||||
return;
|
||||
// match 7.0phalcon3..7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||
script +=
|
||||
'sh ' +
|
||||
'\nsh ' +
|
||||
path.join(__dirname, '../src/scripts/ext/phalcon.sh') +
|
||||
' ' +
|
||||
extension +
|
||||
' ' +
|
||||
version +
|
||||
pipe;
|
||||
pipe +
|
||||
'\n' +
|
||||
(await utils.addLog(
|
||||
'$tick',
|
||||
extension,
|
||||
'Installed and enabled',
|
||||
'linux'
|
||||
));
|
||||
return;
|
||||
default:
|
||||
install_command =
|
||||
|
Loading…
Reference in New Issue
Block a user