Use commit hash in url for nightly builds in darwin.sh

This commit is contained in:
Shivam Mathur 2021-09-05 12:32:28 +05:30
parent da9dadf09c
commit 8eebeae48a
No known key found for this signature in database
GPG Key ID: 3E13E4C8591ACC2A

View File

@ -173,7 +173,7 @@ add_php() {
# Function to get extra version.
php_extra_version() {
if [[ ${version:?} =~ ${nightly_versions:?} ]]; then
echo " ($(brew cat "$php_formula" | grep -Eo "commit=[0-9a-zA-Z]+" | cut -d'=' -f 2))"
echo " ($(brew cat "$php_formula" | grep -Eo "archive/[0-9a-zA-Z]+" | cut -d'/' -f 2))"
fi
}