Add support for pre-installed PHP

This commit is contained in:
Shivam Mathur
2024-12-23 16:04:30 +05:30
parent b6d8115f12
commit da729085ef
5 changed files with 25 additions and 0 deletions

View File

@ -213,6 +213,7 @@ get_scan_dir() {
setup_php() {
step_log "Setup PHP"
php_config="$(command -v php-config 2>/dev/null)"
check_pre_installed
existing_version=$(get_brewed_php)
if [[ "$version" =~ ${old_versions:?} ]]; then
run_script "php5-darwin" "${version/./}" >/dev/null 2>&1