mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-02-15 03:11:50 +00:00
8 lines
205 B
Bash
8 lines
205 B
Bash
#!/bin/sh
|
|
|
|
if [[ $* == *--bare* ]]; then
|
|
# Remove the "v" prefix
|
|
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" | cut -c 2-
|
|
else
|
|
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"
|
|
fi
|