File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ version=$1
2
2
directory=$2
3
3
(
4
4
cd " $directory " || exit 1
5
- trunk=https://windows .php.net/downloads /releases
5
+ trunk=https://downloads .php.net/~windows /releases
6
6
semver=$( curl -sL " $trunk " /releases.json | jq -r " .[\" $version \" ].version" )
7
7
if [ " $version " != " ${semver% .* } " ]; then
8
- semver=$( curl -sL " $trunk " /archives/ | grep -Po ' (?<=HREF =")[^"]*' | grep -Po " $version .[0-9]+" | sort -V | tail -1)
8
+ semver=$( curl -sL " $trunk " /archives/ | grep -Po ' (?<=href =")[^"]*' | grep -Po " $version .[0-9]+" | sort -V | tail -1)
9
9
trunk=" $trunk " /archives
10
10
fi
11
- curl -sL " $trunk " | grep -Po ' (?<=HREF =")[^"]*' | grep -E " $semver " | xargs -n 1 -I{} curl -sLO https://windows.php.net /{}
11
+ curl -sL " $trunk " | grep -Po ' (?<=href =")[^"]*' | grep -E " $semver " | xargs -n 1 -I{} curl -sLO $trunk /{}
12
12
)
You can’t perform that action at this time.
0 commit comments