Created
June 14, 2018 12:04
-
-
Save solace/52ccd131c5e7844ff532e48b8959da68 to your computer and use it in GitHub Desktop.
Update sphp to support PHP 5.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update the support arrays to include 5.5. | |
brew_array=("5.5","5.6","7.0","7.1","7.2") | |
php_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
valet_support_php_version_array=("[email protected]" "[email protected]" "[email protected]" "[email protected]" "[email protected]") | |
# Search for the `brew link --force "$php_version"` line, and replace it with this. | |
if [[ $(echo "$php_version" | sed 's/^php@//' | sed 's/\.//') -lt 56 ]] | |
then | |
brew link --force --overwrite "$php_version" | |
else | |
brew link --force "$php_version" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment