diff options
author | makamys <makamys@outlook.com> | 2022-07-13 16:04:10 +0200 |
---|---|---|
committer | makamys <makamys@outlook.com> | 2022-07-13 16:04:10 +0200 |
commit | f7fd77bcd5c2bbfd1176a761eb3f2af067526015 (patch) | |
tree | b066262c99e3e3db4cbfddae37d1e5956c0f9407 /publish | |
parent | f80f8cab96f897ca65ff35cce78286074ab7292f (diff) | |
download | Neodymium-f7fd77bcd5c2bbfd1176a761eb3f2af067526015.tar.gz Neodymium-f7fd77bcd5c2bbfd1176a761eb3f2af067526015.tar.bz2 Neodymium-f7fd77bcd5c2bbfd1176a761eb3f2af067526015.zip |
Update buildscript [skip ci]
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) |