mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-25 13:03:04 +07:00
Fix parsing php-src tag
This commit is contained in:
parent
48aac87d46
commit
094bc8ae17
@ -362,9 +362,10 @@ php_semver() {
|
||||
|
||||
# Function to get the tag for a php version.
|
||||
php_src_tag() {
|
||||
php_src_tag='master'
|
||||
if ! [[ ${version:?} =~ $nightly_versions ]]; then
|
||||
php_src_tag="php-$semver"
|
||||
commit=$(php_extra_version | grep -Eo "[0-9a-zA-Z]+")
|
||||
if [[ -n "${commit}" ]]; then
|
||||
echo "$commit"
|
||||
else
|
||||
echo "php-$semver"
|
||||
fi
|
||||
echo "$php_src_tag"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user