mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2025-04-28 06:05:06 +03:00
remove bashisms for semver
This commit is contained in:
parent
ae196a7ede
commit
838bca083d
1 changed files with 6 additions and 3 deletions
|
@ -1,8 +1,11 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
if [[ $* == *--bare* ]]; then
|
case "$*" in
|
||||||
|
*--bare*)
|
||||||
# Remove the "v" prefix
|
# 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]*" | cut -c 2-
|
||||||
else
|
;;
|
||||||
|
*)
|
||||||
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"
|
git describe --tags --match="v[0-9]*\.[0-9]*\.[0-9]*"
|
||||||
fi
|
;;
|
||||||
|
esac
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue