Fix couchbase cache on macOS

This commit is contained in:
Shivam Mathur 2022-05-24 18:59:36 +05:30
parent 67ff09364d
commit 16de39288a
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A
2 changed files with 2 additions and 3 deletions

View File

@ -79,6 +79,7 @@ copy_brew_extensions() {
extension_file="$brew_prefix/opt/$dependency/$(get_extension_from_formula "${dependency%@*}").so"
[ -e "$extension_file" ] && sudo cp "$extension_file" "$ext_dir"
done
sudo find -- "$brew_prefix"/Cellar/"$formula"@"$version" -name "*.dylib" -exec cp {} "$ext_dir" \;
}
# Function to install a php extension from shivammathur/extensions tap.

View File

@ -69,9 +69,7 @@ add_couchbase() {
fi
else
if [ -e "${ext_dir:?}"/libcouchbase_php_core.dylib ]; then
couchbase_prefix="${brew_prefix:?}"/opt/couchbase@"$version"
sudo mkdir -p "$couchbase_prefix"
sudo cp "${ext_dir:?}"/libcouchbase_php_core.dylib "$couchbase_prefix"
sudo cp "${ext_dir:?}"/libcouchbase_php_core.dylib ${brew_prefix:?}/lib
fi
add_brew_extension couchbase extension
fi