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 7a135dd commit f68e306Copy full SHA for f68e306
website/build_versioned_docs.sh
@@ -41,7 +41,7 @@ cd "$TEMP_DIR" || { echo "Failed to enter temporary directory"; exit 1; }
41
42
# Match branches in the format "release-x.y"
43
regex='release-[0-9]+\.[0-9]+$' # Regular expression to match release-x.y
44
-branches=$(git branch -a | grep -E "$regex") # Filter branches that match the criteria
+branches=$(git branch -a | grep -E "$regex"| sort -r) # Filter branches that match the criteria
45
46
# Exit the script if no matching branches are found
47
if [ -z "$branches" ]; then
0 commit comments