diff --git a/contrib/semver/version.sh b/contrib/semver/version.sh index 1a5c2fd..c677e96 100644 --- a/contrib/semver/version.sh +++ b/contrib/semver/version.sh @@ -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