Skip to content

Commit 462e710

Browse files
committed
Add fallback to github api for adding intl
1 parent 8582cb1 commit 462e710

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/scripts/extensions/intl.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ install_icu() {
1212
add_intl() {
1313
icu=$(echo "$1" | cut -d'-' -f 2)
1414
supported_version=$(get -s -n "" https://api.github.com/repos/shivammathur/icu-intl/releases/tags/intl-"$icu" | grep -Po "php${version?}-intl-$icu" | head -n 1)
15+
[ -z "$supported_version" ] && supported_version=$(get -s -n "" https://github.com/shivammathur/icu-intl/releases/expanded_assets/intl-"$icu" | grep -Po "php$version-intl-$icu" | head -n 1)
1516
if [ "php$version-intl-$icu" != "$supported_version" ]; then
1617
add_log "${cross:?}" "intl" "ICU $icu is not supported for PHP $version"
1718
else

0 commit comments

Comments
 (0)