mirror of
https://github.com/shivammathur/setup-php.git
synced 2024-11-25 21:13: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.
|
# Function to get the tag for a php version.
|
||||||
php_src_tag() {
|
php_src_tag() {
|
||||||
php_src_tag='master'
|
commit=$(php_extra_version | grep -Eo "[0-9a-zA-Z]+")
|
||||||
if ! [[ ${version:?} =~ $nightly_versions ]]; then
|
if [[ -n "${commit}" ]]; then
|
||||||
php_src_tag="php-$semver"
|
echo "$commit"
|
||||||
|
else
|
||||||
|
echo "php-$semver"
|
||||||
fi
|
fi
|
||||||
echo "$php_src_tag"
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user