diff --git a/scripts/autorelease.sh b/scripts/autorelease.sh index aedd26bb..351fa25b 100755 --- a/scripts/autorelease.sh +++ b/scripts/autorelease.sh @@ -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() { diff --git a/scripts/branchlist.sh b/scripts/branchlist.sh new file mode 100755 index 00000000..e6c5de00 --- /dev/null +++ b/scripts/branchlist.sh @@ -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]*)?$' diff --git a/scripts/propagate.sh b/scripts/propagate.sh index 86bc3968..d5481e19 100755 --- a/scripts/propagate.sh +++ b/scripts/propagate.sh @@ -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