From: Matthew Newton Date: Tue, 10 Oct 2023 11:20:16 +0000 (+0100) Subject: fix version.sh output when we're on a tag X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c26216524cbb72803f2c028a3d56dd466d96b26;p=thirdparty%2Ffreeradius-server.git fix version.sh output when we're on a tag --- diff --git a/version.sh b/version.sh index 8d86d8acbf7..6cddbe16c60 100755 --- a/version.sh +++ b/version.sh @@ -92,7 +92,7 @@ version_component() commit_depth) out=$(\ cat ${commit_depth_file} 2> /dev/null || \ - (${in_repo} && ${git} describe --tags --match 'branch_*' --match 'release_*' | cut -d '-' -f 2) || \ + (${in_repo} && ${git} describe --tags --match 'branch_*' --match 'release_*' | cut -s -d '-' -f 2) || \ echo "${commit_depth}" \ ) ;;