]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
fix version.sh output when we're on a tag
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>
Tue, 10 Oct 2023 11:20:16 +0000 (12:20 +0100)
committerMatthew Newton <matthew-git@newtoncomputing.co.uk>
Tue, 10 Oct 2023 11:20:16 +0000 (12:20 +0100)
version.sh

index 8d86d8acbf7ecede2951394bd793f127b8aebf47..6cddbe16c609b78c38f66abe89830716ab6726ba 100755 (executable)
@@ -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}" \
                )
        ;;