Skip to content

Commit

Permalink
Update trunk in Update fetch.sh [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
shivammathur authored Dec 25, 2024
1 parent 3452b4e commit 0ce3047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/fetch.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0ce3047

Please sign in to comment.