We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8a4d2aa commit 262b07cCopy full SHA for 262b07c
1 file changed
install-extensions.sh
@@ -17,14 +17,16 @@ has_extension() {
17
}
18
19
install_xhprof() {
20
- local version="${1:-stable}"
+ local ext="xhprof" version="${1:-stable}"
21
22
- has_extension "xhprof" && return 0
23
- pecl install xhprof-$version
+ has_extension "$ext" && return 0
+ pecl install "$ext-$version"
24
25
26
install_mongo() {
27
- echo no | pecl install mongo
+ local ext="mongo" version="${1:-stable}"
28
+
29
+ echo no | pecl install "$ext-$version"
30
31
32
install_mongodb() {
0 commit comments