diff options
Diffstat (limited to 'publish')
-rw-r--r-- | publish/get_version.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/publish/get_version.py b/publish/get_version.py index 32f27ce..19923e7 100644 --- a/publish/get_version.py +++ b/publish/get_version.py @@ -11,4 +11,8 @@ if os.path.exists(versionPath): else: ver = subprocess.run(["git", "describe", "--tags", "--dirty"], capture_output=True, text=True).stdout or "UNKNOWN-" + subprocess.run(["git", "describe", "--always", "--dirty"], capture_output=True, text=True).stdout or "UNKNOWN" -print(ver.strip()) +ver = ver.strip() +if ver[0] == "v": + ver = ver[1:] + +print(ver) |