mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix couchbase cache on macOS
This commit is contained in:
parent
67ff09364d
commit
16de39288a
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user