Skip to content

Commit 6c4cbba

Browse files
Do not add lts to the title
Signed-off-by: Ihor Aleksandrychiev <ihor.aleksandrychiev@northern.tech>
1 parent 0f3a6aa commit 6c4cbba

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

generator/build/main.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,12 @@ sudo chmod -R a+rX "$WRKDIR"/masterfiles
121121
echo "branch: $BRANCH" >> "$WRKDIR"/documentation/generator/_config.yml
122122

123123
# replace %branch% placeholder with actual branch name
124-
sed -i "s/%branch%/$BRANCH/g" "$WRKDIR"/documentation/hugo/config.toml
124+
if [ "$BRANCH" = "lts" ]; then
125+
# For lts branch, remove %branch% and the space before it
126+
sed -i "s/ %branch%//g" "$WRKDIR"/documentation/hugo/config.toml
127+
else
128+
sed -i "s/%branch%/$BRANCH/g" "$WRKDIR"/documentation/hugo/config.toml
129+
fi
125130

126131
# Generate syntax data
127132
./_regenerate_json.sh || exit 4

0 commit comments

Comments
 (0)