Skip to content

Commit 5006a77

Browse files
committed
Fix caching couchbase on macOS
1 parent 4e89813 commit 5006a77

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/scripts/extensions/couchbase.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,8 @@ add_couchbase() {
7979
add_extension_log "couchbase" "Installed and enabled"
8080
fi
8181
else
82-
if [ -e "${ext_dir:?}"/libcouchbase_php_core.dylib ]; then
83-
sudo cp "${ext_dir:?}"/libcouchbase_php_core.dylib "${brew_prefix:?}"/lib
84-
fi
82+
find "${ext_dir:?}" -maxdepth 1 -name 'libcouchbase_php*.dylib' -exec sudo cp {} "${brew_prefix:?}/lib" \; >/dev/null 2>&1
8583
add_brew_extension couchbase extension
84+
find "${brew_prefix:?}/lib" -maxdepth 1 -name 'libcouchbase_php*.dylib' -exec sudo cp {} "${ext_dir:?}" \; >/dev/null 2>&1
8685
fi
8786
}

0 commit comments

Comments
 (0)