scripts: misc: guix.sh: fix last version detection.

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
Acked-by: Adrien 'neox' Bourmault <neox@gnu.org>
This commit is contained in:
Denis 'GNUtoo' Carikli 2024-01-30 23:51:24 +01:00
parent 4672e02a45
commit b3a0ddd92c
Signed by: GNUtoo
GPG Key ID: 5F5DFCC14177E263
1 changed files with 4 additions and 3 deletions

View File

@ -271,10 +271,11 @@ is_latest_release()
return ${true}
elif [ -n "$(echo ${revision} | grep '\.')" ] ; then
return ${false}
else
git --no-pager -C "$(guix_checkout)" tag --merged "${revision}" | \
grep "^v${guix_latest_release}$" > /dev/null
elif git --no-pager -C "$(guix_checkout)" tag --merged "${revision}" | \
grep "^v${guix_latest_release}$" > /dev/null ; then
return ${true}
else
return ${false}
fi
}