From 16f663627b9e93179544d1c6d347ae1095d5f95d Mon Sep 17 00:00:00 2001 From: Piotr Grabowski Date: Sat, 10 Sep 2022 13:59:53 +0200 Subject: [PATCH] chore(support): fix `get-version` script --- support/get-version.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/support/get-version.sh b/support/get-version.sh index a3a263b..35b9c9f 100755 --- a/support/get-version.sh +++ b/support/get-version.sh @@ -1,5 +1,5 @@ #!/usr/bin/env bash -VERSION_TAG=$(git tag -l | grep "v" | cut -c2-); +VERSION_TAG=$(git tag -l | grep "v" | tail -n1 | cut -c2-); if [[ ${#VERSION_TAG} -ne 0 ]]; then echo "$VERSION_TAG"; else