Add support for debug builds

This commit is contained in:
Shivam Mathur
2022-09-26 09:42:27 +05:30
parent 7aff4d7a22
commit b556cf7292
6 changed files with 30 additions and 5 deletions

View File

@ -173,6 +173,7 @@ add_php() {
existing_version=$2
add_brew_tap "$php_tap"
update_dependencies
[ "${debug:?}" = "debug" ] && php_formula="$php_formula-debug"
if [ "$existing_version" != "false" ]; then
([ "$action" = "upgrade" ] && brew upgrade -f "$php_formula") || brew unlink "$php_formula"
else