refactor: show actual version in main menu

filter tags to v5 in kiauh bash version

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-08-31 12:39:41 +02:00
parent 6225ee59d0
commit fee52551c7
5 changed files with 87 additions and 9 deletions

View File

@@ -40,7 +40,7 @@ function main_ui() {
function get_kiauh_version() {
local version
cd "${KIAUH_SRCDIR}"
version="$(git describe HEAD --always --tags | cut -d "-" -f 1,2)"
version="$(git tag -l 'v5*' | tail -1)"
echo "${version}"
}