From 8eebeae48aa180d18c07b632d73a694dc003b7ab Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Sun, 5 Sep 2021 12:32:28 +0530 Subject: [PATCH] Use commit hash in url for nightly builds in darwin.sh --- src/scripts/darwin.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scripts/darwin.sh b/src/scripts/darwin.sh index de1321c4..8c18b53e 100644 --- a/src/scripts/darwin.sh +++ b/src/scripts/darwin.sh @@ -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 }