mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-26 05:23:03 +07:00
Fix extensions with PDO prefix
This commit is contained in:
parent
9d5e8ddc70
commit
7c5f2ab8e9
@ -171,7 +171,7 @@ function addExtensionLinux(extension_csv, version) {
|
|||||||
'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php' +
|
'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php' +
|
||||||
version +
|
version +
|
||||||
'-' +
|
'-' +
|
||||||
extension +
|
extension.replace('pdo_', '').replace('pdo-', '') +
|
||||||
' >/dev/null 2>&1 || sudo pecl install ' +
|
' >/dev/null 2>&1 || sudo pecl install ' +
|
||||||
extension +
|
extension +
|
||||||
' >/dev/null 2>&1';
|
' >/dev/null 2>&1';
|
||||||
|
@ -110,9 +110,7 @@ function extensionArray(extension_csv) {
|
|||||||
return extension
|
return extension
|
||||||
.trim()
|
.trim()
|
||||||
.replace('php-', '')
|
.replace('php-', '')
|
||||||
.replace('php_', '')
|
.replace('php_', '');
|
||||||
.replace('pdo_', '')
|
|
||||||
.replace('pdo-', '');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
13
package-lock.json
generated
13
package-lock.json
generated
@ -1744,7 +1744,8 @@
|
|||||||
"ansi-regex": {
|
"ansi-regex": {
|
||||||
"version": "2.1.1",
|
"version": "2.1.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"aproba": {
|
"aproba": {
|
||||||
"version": "1.2.0",
|
"version": "1.2.0",
|
||||||
@ -2159,7 +2160,8 @@
|
|||||||
"safe-buffer": {
|
"safe-buffer": {
|
||||||
"version": "5.1.2",
|
"version": "5.1.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"safer-buffer": {
|
"safer-buffer": {
|
||||||
"version": "2.1.2",
|
"version": "2.1.2",
|
||||||
@ -2215,6 +2217,7 @@
|
|||||||
"version": "3.0.1",
|
"version": "3.0.1",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true,
|
"dev": true,
|
||||||
|
"optional": true,
|
||||||
"requires": {
|
"requires": {
|
||||||
"ansi-regex": "^2.0.0"
|
"ansi-regex": "^2.0.0"
|
||||||
}
|
}
|
||||||
@ -2258,12 +2261,14 @@
|
|||||||
"wrappy": {
|
"wrappy": {
|
||||||
"version": "1.0.2",
|
"version": "1.0.2",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
},
|
},
|
||||||
"yallist": {
|
"yallist": {
|
||||||
"version": "3.0.3",
|
"version": "3.0.3",
|
||||||
"bundled": true,
|
"bundled": true,
|
||||||
"dev": true
|
"dev": true,
|
||||||
|
"optional": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -164,7 +164,7 @@ export async function addExtensionLinux(
|
|||||||
'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php' +
|
'sudo DEBIAN_FRONTEND=noninteractive apt-get install -y php' +
|
||||||
version +
|
version +
|
||||||
'-' +
|
'-' +
|
||||||
extension +
|
extension.replace('pdo_', '').replace('pdo-', '') +
|
||||||
' >/dev/null 2>&1 || sudo pecl install ' +
|
' >/dev/null 2>&1 || sudo pecl install ' +
|
||||||
extension +
|
extension +
|
||||||
' >/dev/null 2>&1';
|
' >/dev/null 2>&1';
|
||||||
|
@ -112,9 +112,7 @@ export async function extensionArray(
|
|||||||
return extension
|
return extension
|
||||||
.trim()
|
.trim()
|
||||||
.replace('php-', '')
|
.replace('php-', '')
|
||||||
.replace('php_', '')
|
.replace('php_', '');
|
||||||
.replace('pdo_', '')
|
|
||||||
.replace('pdo-', '');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user