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:
parent
4672e02a45
commit
b3a0ddd92c
|
@ -271,10 +271,11 @@ is_latest_release()
|
||||||
return ${true}
|
return ${true}
|
||||||
elif [ -n "$(echo ${revision} | grep '\.')" ] ; then
|
elif [ -n "$(echo ${revision} | grep '\.')" ] ; then
|
||||||
return ${false}
|
return ${false}
|
||||||
else
|
elif git --no-pager -C "$(guix_checkout)" tag --merged "${revision}" | \
|
||||||
git --no-pager -C "$(guix_checkout)" tag --merged "${revision}" | \
|
grep "^v${guix_latest_release}$" > /dev/null ; then
|
||||||
grep "^v${guix_latest_release}$" > /dev/null
|
|
||||||
return ${true}
|
return ${true}
|
||||||
|
else
|
||||||
|
return ${false}
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue