diff --git a/dist/index.js b/dist/index.js index fb79d474..a20c78c9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -243,7 +243,7 @@ async function addExtensionDarwin(extension_csv, version) { add_script += await utils.parseExtensionSource(extension, ext_prefix); return; case /^(5\.[3-6]|7\.[0-4]|8\.[0-1])blackfire(-\d+\.\d+\.\d+)?$/.test(version_extension): - case /^couchbase$|^geos$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension): + case /^couchbase|^geos$|^pdo_oci$|^oci8$|^(pecl_)?http|^pdo_firebird$/.test(extension): case /^(5\.[3-6]|7\.[0-4])ioncube$/.test(version_extension): case /(5\.6|7\.[0-3])phalcon3|7\.[2-4]phalcon4/.test(version_extension): case /(?/dev/null 2>&1 + ext=$1 + if [ "$ext" = "couchbase" ]; then + ext=$(get_couchbase_version) + fi + if [[ "$ext" =~ couchbase-[2-3].+ ]]; then + add_couchbase_clibs "$ext" >/dev/null 2>&1 else add_couchbase_cxxlibs >/dev/null 2>&1 fi @@ -74,7 +78,7 @@ add_couchbase() { if check_extension "couchbase"; then add_log "${tick:?}" "couchbase" "Enabled" else - pecl_install "${couchbase_version}" >/dev/null 2>&1 + pecl_install "${ext}" >/dev/null 2>&1 add_extension_log "couchbase" "Installed and enabled" fi }