From 1fa3ba1b162e818eed12eed233c9837299574948 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 19 Sep 2021 03:58:05 +0530 Subject: [PATCH] Fix php_extra_version on macOS --- src/scripts/darwin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index 803e8f4e..c5aac20a 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -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 }