From 0ce3047f2b09a15af535a06430fd14b868e815b9 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Wed, 25 Dec 2024 09:26:47 +0530 Subject: [PATCH] Update trunk in Update fetch.sh [skip ci] --- scripts/fetch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/fetch.sh b/scripts/fetch.sh index d0535c0..9818b8b 100644 --- a/scripts/fetch.sh +++ b/scripts/fetch.sh @@ -2,7 +2,7 @@ version=$1 directory=$2 ( cd "$directory" || exit 1 - trunk=https://windows.php.net/downloads/releases + trunk=https://downloads.php.net/~windows/releases semver=$(curl -sL "$trunk"/releases.json | jq -r ".[\"$version\"].version") if [ "$version" != "${semver%.*}" ]; then semver=$(curl -sL "$trunk"/archives/ | grep -Po '(?<=HREF=")[^"]*' | grep -Po "$version.[0-9]+" | sort -V | tail -1)