From 57662657e0ac8d9db3c1f3491ec8b947a046ddf1 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Tue, 1 Feb 2022 10:11:28 +0530 Subject: [PATCH] Enable extensions required for installing composer packages --- src/scripts/tools/add_tools.ps1 | 1 + src/scripts/tools/add_tools.sh | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/scripts/tools/add_tools.ps1 b/src/scripts/tools/add_tools.ps1 index 6c653e9f..3752c308 100644 --- a/src/scripts/tools/add_tools.ps1 +++ b/src/scripts/tools/add_tools.ps1 @@ -199,6 +199,7 @@ Function Add-Composertool() { Add-Log $cross $tool "Skipped" Return } + Enable-PhpExtension -Extension mbstring, openssl -Path $php_dir $log = Add-ComposertoolHelper -tool $tool -release $release -prefix $prefix -scope $scope if(Test-Path $composer_bin\composer) { Copy-Item -Path "$bin_dir\composer" -Destination "$composer_bin\composer" -Force diff --git a/src/scripts/tools/add_tools.sh b/src/scripts/tools/add_tools.sh index 5df6e6ce..883f8f14 100644 --- a/src/scripts/tools/add_tools.sh +++ b/src/scripts/tools/add_tools.sh @@ -117,6 +117,8 @@ add_composertool_helper() { release=$2 prefix=$3 scope=$4 + enable_extension mbstring extension >/dev/null 2>&1 + enable_extension openssl extension >/dev/null 2>&1 if [ "$scope" = "global" ]; then sudo rm -f "$composer_lock" >/dev/null 2>&1 || true composer global require "$prefix$release" >/dev/null 2>&1