Fix extensions with PDO prefix

This commit is contained in:
Shivam Mathur 2019-11-13 06:29:58 +05:30
parent 9d5e8ddc70
commit 7c5f2ab8e9
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
5 changed files with 13 additions and 12 deletions

View File

@ -171,7 +171,7 @@ function addExtensionLinux(extension_csv, version) {
'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php' +
version +
'-' +
extension +
extension.replace('pdo_', '').replace('pdo-', '') +
' >/dev/null 2>&1 || sudo pecl install ' +
extension +
' >/dev/null 2>&1';

View File

@ -110,9 +110,7 @@ function extensionArray(extension_csv) {
return extension
.trim()
.replace('php-', '')
.replace('php_', '')
.replace('pdo_', '')
.replace('pdo-', '');
.replace('php_', '');
});
}
});

13
package-lock.json generated
View File

@ -1744,7 +1744,8 @@
"ansi-regex": {
"version": "2.1.1",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"aproba": {
"version": "1.2.0",
@ -2159,7 +2160,8 @@
"safe-buffer": {
"version": "5.1.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"safer-buffer": {
"version": "2.1.2",
@ -2215,6 +2217,7 @@
"version": "3.0.1",
"bundled": true,
"dev": true,
"optional": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@ -2258,12 +2261,14 @@
"wrappy": {
"version": "1.0.2",
"bundled": true,
"dev": true
"dev": true,
"optional": true
},
"yallist": {
"version": "3.0.3",
"bundled": true,
"dev": true
"dev": true,
"optional": true
}
}
},

View File

@ -164,7 +164,7 @@ export async function addExtensionLinux(
'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php' +
version +
'-' +
extension +
extension.replace('pdo_', '').replace('pdo-', '') +
' >/dev/null 2>&1 || sudo pecl install ' +
extension +
' >/dev/null 2>&1';

View File

@ -112,9 +112,7 @@ export async function extensionArray(
return extension
.trim()
.replace('php-', '')
.replace('php_', '')
.replace('pdo_', '')
.replace('pdo-', '');
.replace('php_', '');
});
}
}