5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-22 00:10:29 +00:00

Semver version fix

This commit is contained in:
Neil Alexander 2021-06-05 22:38:37 +01:00
parent c5529a3a38
commit 2b6aa3e2d7

View File

@ -1,6 +1,6 @@
#!/bin/sh
if [ "$1" == "--bare" ]; then
if [[ $* == *--bare* ]]; then
# Remove the "v" prefix
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" | cut -c 2-
else