From 6c3acfe5e95f2a1341f5a23f22b7574516e47113 Mon Sep 17 00:00:00 2001 From: Riccardo Di Dato Date: Sun, 25 Sep 2022 21:29:34 +0200 Subject: [PATCH] Fix git tag detection --- scripts/latest-ver.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/latest-ver.sh b/scripts/latest-ver.sh index 322251f..7664c3d 100755 --- a/scripts/latest-ver.sh +++ b/scripts/latest-ver.sh @@ -1,4 +1,4 @@ #!/bin/bash git pull --quiet -git tag -l --sort=-version:refname | head -n 1 \ No newline at end of file +git tag | tr - \~ | sort -V | tr \~ - | tail -n 1 \ No newline at end of file