Use describe --tags when comparing versions

This commit is contained in:
David Duque 2020-04-21 14:26:51 +01:00
parent 2176d59727
commit 8aa1ea23c8
No known key found for this signature in database
GPG Key ID: 2F327738A3C0AE3A
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ fi
cd $HOME/mailinabox
# Update it.
if [ "$TAG" != `git describe` ]; then
if [ "$TAG" != `git describe --tags` ]; then
echo Updating Mail-in-a-Box to $TAG . . .
git fetch --depth 1 --force --prune origin tag $TAG
if ! git checkout -q $TAG; then