fix set_build

This commit is contained in:
Jack Robison 2018-10-22 17:55:32 -04:00
parent 8139f93ff1
commit ba57af5502
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -17,7 +17,7 @@ def main():
def get_build():
try:
tag = subprocess.check_output(['git', 'describe', '--exact-match', '--all']).strip()
if re.match('v\d+\.\d+\.\d+rc\d+', tag):
if re.match('v\d+\.\d+\.\d+rc\d+', tag.decode()):
return 'rc'
else:
return 'release'