mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-23 04:11:06 +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;
|
break;
|
||||||
// match 7.0xdebug..7.4xdebug
|
// match 7.0xdebug..7.4xdebug
|
||||||
case /^7\.[0-4]xdebug$/.test(version_extension):
|
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;
|
return;
|
||||||
// match 7.0phalcon3..7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
// match 7.0phalcon3..7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
||||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||||
script +=
|
script +=
|
||||||
'sh ' +
|
'\nsh ' +
|
||||||
path.join(__dirname, '../src/scripts/ext/phalcon.sh') +
|
path.join(__dirname, '../src/scripts/ext/phalcon.sh') +
|
||||||
' ' +
|
' ' +
|
||||||
extension +
|
extension +
|
||||||
' ' +
|
' ' +
|
||||||
version +
|
version +
|
||||||
pipe;
|
pipe +
|
||||||
|
'\n' +
|
||||||
|
(yield utils.addLog('$tick', extension, 'Installed and enabled', 'linux'));
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
install_command =
|
install_command =
|
||||||
|
@ -123,18 +123,29 @@ export async function addExtensionLinux(
|
|||||||
break;
|
break;
|
||||||
// match 7.0xdebug..7.4xdebug
|
// match 7.0xdebug..7.4xdebug
|
||||||
case /^7\.[0-4]xdebug$/.test(version_extension):
|
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;
|
return;
|
||||||
// match 7.0phalcon3..7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
// match 7.0phalcon3..7.3phalcon3 and 7.2phalcon4...7.4phalcon4
|
||||||
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
case /^7\.[0-3]phalcon3$|^7\.[2-4]phalcon4$/.test(version_extension):
|
||||||
script +=
|
script +=
|
||||||
'sh ' +
|
'\nsh ' +
|
||||||
path.join(__dirname, '../src/scripts/ext/phalcon.sh') +
|
path.join(__dirname, '../src/scripts/ext/phalcon.sh') +
|
||||||
' ' +
|
' ' +
|
||||||
extension +
|
extension +
|
||||||
' ' +
|
' ' +
|
||||||
version +
|
version +
|
||||||
pipe;
|
pipe +
|
||||||
|
'\n' +
|
||||||
|
(await utils.addLog(
|
||||||
|
'$tick',
|
||||||
|
extension,
|
||||||
|
'Installed and enabled',
|
||||||
|
'linux'
|
||||||
|
));
|
||||||
return;
|
return;
|
||||||
default:
|
default:
|
||||||
install_command =
|
install_command =
|
||||||
|
Loading…
Reference in New Issue
Block a user