From 094bc8ae178dacbbd0d89e6f6568182b6321bae7 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 19 Sep 2021 02:54:02 +0530 Subject: [PATCH] Fix parsing php-src tag --- src/scripts/common.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/scripts/common.sh b/src/scripts/common.sh index 8877f722..fee48610 100644 --- a/src/scripts/common.sh +++ b/src/scripts/common.sh @@ -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" }