Skip to content

Commit

Permalink
Fix php_extra_version on macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur committed Sep 18, 2021
1 parent d8d1da5 commit 1fa3ba1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/darwin.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ add_php() {
# Function to get extra version.
php_extra_version() {
php_formula_file="$tap_dir"/shivammathur/homebrew-php/Formula/php@"$version".rb
if [ -e "$php_formula_file" ] && grep -Eq "archive/[0-9a-zA-Z]+" "$php_formula_file"; then
if [ -e "$php_formula_file" ] && ! grep -q "deprecate!" $php_formula_file && grep -Eq "archive/[0-9a-zA-Z]+" "$php_formula_file"; then
echo " ($(grep -Eo "archive/[0-9a-zA-Z]+" "$php_formula_file" | cut -d'/' -f 2))"
fi
}
Expand Down

0 comments on commit 1fa3ba1

Please sign in to comment.