Skip to content

Commit 616ceca

Browse files
committed
Catch all lts branches in build.sh
1 parent c1d84bb commit 616ceca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
branch=$(git branch --show-current)
44
branch_main="main"
5-
if [ "$branch" == "2024-lts" ]; then
5+
if [[ "$branch" == *-lts ]]; then
66
branch_main=$branch
77
fi
88

@@ -34,7 +34,7 @@ echo "" >> src/references/index.md
3434
echo " - [README](qwc-base-db_readme.md)" >> src/references/index.md
3535
mkdir -p tmp
3636
echo "* Downloading schema versions..."
37-
if [ "$branch" == "2024-lts" ]; then
37+
if [ "$branch" == *-lts ]; then
3838
wget -q -O tmp/schema-versions.json https://github.com/qwc-services/qwc-config-generator/raw/${branch}/schemas/schema-versions.json
3939
else
4040
wget -q -O tmp/schema-versions.json https://raw.githubusercontent.com/qwc-services/qwc-config-generator/${branch}/src/schema-versions.json

0 commit comments

Comments
 (0)