Commit 6e566bc1 authored by Benjamin "Ziirish" SANS's avatar Benjamin "Ziirish" SANS
Browse files

fix: more verbose release setup

parent 8eab376a
......@@ -147,11 +147,13 @@ class BuildStatic(Command):
try:
branch = check_output('git rev-parse HEAD', shell=True).rstrip()
ver = open(os.path.join('burpui', 'VERSION')).read().rstrip()
log.info('version: {}'.format(ver))
if branch and 'dev' in ver:
rev = branch
except:
pass
try:
log.info('revision: {}'.format(rev))
with open('burpui/RELEASE', 'w') as f:
f.write(rev)
except:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment