We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43b3dab commit b3a1fbfCopy full SHA for b3a1fbf
scripts/build_partials/version.sh
@@ -48,12 +48,13 @@ get_version() {
48
new_version=$(get_version_from_branch master)
49
export branch="master"
50
else
51
- ref="$(git ls-remote --heads https://github.com/php/php-src "PHP-$PHP_VERSION".0)"
52
- if [[ -n "$ref" ]]; then
53
- export branch="PHP-$PHP_VERSION.0"
54
- else
55
- export branch="PHP-$PHP_VERSION"
56
- fi
+ for branch_name in "PHP-$PHP_VERSION" "PHP-$PHP_VERSION.0"; do
+ ref="$(git ls-remote --heads https://github.com/php/php-src "$branch_name")"
+ if [[ -n "$ref" ]]; then
+ export branch=$branch_name
+ break;
+ fi
57
+ done
58
fi
59
export stable="false"
60
0 commit comments