diff --git a/scripts/version.sh b/scripts/version.sh index 3ca8d03f..602a8001 100755 --- a/scripts/version.sh +++ b/scripts/version.sh @@ -48,7 +48,9 @@ if [[ $describe_output =~ ^v([0-9]+\.[0-9]+\.[0-9]+)(-([0-9]+)-g[a-f0-9]+)?$ ]]; version=${BASH_REMATCH[1]} # X.Y.Z commits=${BASH_REMATCH[3]} # number of commits since tag - if [[ "$SHORT" == true ]]; then + # If we're producing a short version string, or this is a release version + # (no commits since tag) + if [[ "$SHORT" == true ]] || [[ -z "$commits" ]]; then echo "$version" exit 0 fi
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: