mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-22 20:01:06 +07:00
Fix php_extra_version on macOS
This commit is contained in:
parent
d8d1da5d6d
commit
1fa3ba1b16
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user