Added git tag check

This commit is contained in:
Alejandro Criado-Pérez 2023-08-19 13:35:12 +02:00
parent d2f86ffb16
commit 30dc01eb97
No known key found for this signature in database
GPG Key ID: 766DF93C61C31C03

View File

@ -10,7 +10,7 @@ else
BUILD_TYPE="$1"
fi
if [[ "$(git tag --points-at HEAD 2>/dev/null)" == v* ]]; then
if [[ "$(git tag --points-at HEAD 2>/dev/null | head -n 1)" == v* ]]; then
touch "${ROOTDIR}/prerelease.txt"
fi