Fix parsing php-src tag

This commit is contained in:
Shivam Mathur 2021-09-19 02:54:02 +05:30
parent 48aac87d46
commit 094bc8ae17
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -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"
}