You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versions.sh
+15-16Lines changed: 15 additions & 16 deletions
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ set -Eeuo pipefail
3
3
4
4
cd"$(dirname "$(readlink -f "$BASH_SOURCE")")"
5
5
6
+
# TODO consume https://www.php.net/releases/branches.php and https://www.php.net/release-candidates.php?format=json here like in Go, Julia, etc (so we can have a canonical "here's all the versions possible" mode, and more automated metadata like EOL 👀)
7
+
6
8
versions=( "$@" )
7
9
if [ ${#versions[@]}-eq 0 ];then
8
10
versions=( 8*/ )
@@ -52,16 +54,9 @@ for version in "${versions[@]}"; do
52
54
unset IFS
53
55
54
56
if [ "${#possibles[@]}"-eq 0 ];then
55
-
if [ "$rcVersion"="$version" ];then
56
-
echo>&2
57
-
echo>&2"error: unable to determine available releases of $version"
58
-
echo>&2
59
-
exit 1
60
-
else
61
-
echo>&2"warning: skipping/removing '$version' (does not appear to exist upstream)"
0 commit comments