Use shared branch list script

This commit is contained in:
embeddedt 2023-07-12 19:30:27 -04:00
parent d36cc4acc1
commit 8f806e6285
No known key found for this signature in database
GPG Key ID: A69433EC199B5613
3 changed files with 4 additions and 2 deletions

View File

@ -19,7 +19,7 @@ git clone https://github.com/embeddedt/ModernFix mfix &>/dev/null
cd mfix
# gather version list
readarray -t all_versions < <(git ls-remote --heads origin | awk '{print $2}' | sed 's:.*/::' | sort -V)
readarray -t all_versions < <(scripts/branchlist.sh)
last_released_version=""
do_release() {

2
scripts/branchlist.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/bash
git ls-remote --heads origin | awk '{print $2}' | sed 's:.*/::' | sort -V | grep -E '^1\.[0-9]*(\.[0-9]*)?$'

View File

@ -20,7 +20,7 @@ git clone https://github.com/embeddedt/ModernFix mfix &>/dev/null
cd mfix
# gather version list
readarray -t all_versions < <(git ls-remote --heads origin | awk '{print $2}' | sed 's:.*/::' | sort -V)
readarray -t all_versions < <(scripts/branchlist.sh)
echo "found versions: ${all_versions[@]}"
# checkout base version