5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-25 01:21:36 +00:00

remove bashisms for semver

This commit is contained in:
Arceliar 2021-06-06 02:33:11 -05:00
parent ae196a7ede
commit 838bca083d

View File

@ -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