Skip to content

Commit 3b17e4d

Browse files
Update build.sh
1 parent 35bc7da commit 3b17e4d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

scripts/build.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,12 @@ for branch in "${VERSION_BRANCHES[@]}"; do
9898
if [[ "$branch" =~ ^release/ ]]; then
9999
VERSION=$(echo "$branch" | sed 's|release/||')
100100
VERSION_TITLE="$VERSION"
101-
VERSION_URL="/$VERSION/"
101+
# First entry always has URL "/" regardless of version
102+
if [ "$FIRST" = true ]; then
103+
VERSION_URL="/"
104+
else
105+
VERSION_URL="/$VERSION/"
106+
fi
102107
else
103108
VERSION="main"
104109
VERSION_TITLE="Latest (main)"

0 commit comments

Comments
 (0)