mirror of
https://github.com/yggdrasil-network/yggdrasil-go
synced 2024-11-10 07:20:39 +03:00
12 lines
216 B
Bash
12 lines
216 B
Bash
#!/bin/sh
|
|
|
|
case "$*" in
|
|
*--bare*)
|
|
# Remove the "v" prefix
|
|
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*" | cut -c 2-
|
|
;;
|
|
*)
|
|
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"
|
|
;;
|
|
esac
|