We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14fa980 commit 5afed16Copy full SHA for 5afed16
src/scripts/darwin.sh
@@ -86,9 +86,12 @@ add_extension() {
86
if check_extension "$extension"; then
87
add_log "${tick:?}" "$extension" "Enabled"
88
else
89
- [[ "$version" =~ 5.[4-5] ]] && [ "$extension" = "imagick" ] && brew install -f pkg-config imagemagick >/dev/null 2>&1
90
- pecl_install "$extension" >/dev/null 2>&1 &&
+ if [[ "$version" =~ ${old_versions:?} ]] && [ "$extension" = "imagick" ]; then
+ run_script "php5-darwin" "${version/./}" "$extension" >/dev/null 2>&1
91
+ else
92
+ pecl_install "$extension" >/dev/null 2>&1 &&
93
if [[ "$version" =~ ${old_versions:?} ]]; then echo "$prefix=$ext_dir/$extension.so" >>"$ini_file"; fi
94
+ fi
95
add_extension_log "$extension" "Installed and enabled"
96
fi
97
}
0 commit comments