summaryrefslogtreecommitdiffstats
path: root/installer/opengnsys_update.sh
diff options
context:
space:
mode:
authorRamón M. Gómez <ramongomez@us.es>2021-04-07 09:18:07 +0200
committerRamón M. Gómez <ramongomez@us.es>2021-04-07 09:18:07 +0200
commitcfb16c0123fb07ac876f42c7bd9a602731b5f359 (patch)
treea3116c60c2cf69bbba00ac78d6d2a08a2a51cd13 /installer/opengnsys_update.sh
parent280a77fbb2f13fe99641f576247676d03b475c93 (diff)
#997: Using tags with format `vX.Y.Z` instead of `opengnsys-X.Y.Z`
Diffstat (limited to 'installer/opengnsys_update.sh')
-rwxr-xr-xinstaller/opengnsys_update.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/installer/opengnsys_update.sh b/installer/opengnsys_update.sh
index 4b244b28..0ae41c18 100755
--- a/installer/opengnsys_update.sh
+++ b/installer/opengnsys_update.sh
@@ -221,8 +221,9 @@ function chooseVersion()
[ -f $INSTALL_TARGET/doc/VERSION.txt ] && read -pe INSTVERSION INSTRELEASE <<< $(awk '{print $2,$3}' $INSTALL_TARGET/doc/VERSION.txt)
# Fetch tags (releases) data from GitHub.
while read -pe TAG URL; do
- if [[ $TAG =~ ^opengnsys- ]]; then
+ if [[ $TAG =~ ^(opengnsys-|v)[0-9] ]]; then
[ "${TAG#opengnsys-}" \< "${INSTVERSION%pre}" ] && continue
+ [ "${TAG#v}" \< "${INSTVERSION%pre}" ] && continue
RELDATE=$(curl -s "$URL" | jq -r '.commit.committer.date | split("-") | join("")[:8]')
RELEASES+=( "${TAG} ($RELDATE)" )
DOWNLOADS+=( "$URL" )