fix getting vesion number from command line
gitea/gitea-deb/pipeline/head This commit looks good
Details
gitea/gitea-deb/pipeline/head This commit looks good
Details
This commit is contained in:
parent
621545b6cd
commit
442c393918
|
@ -11,7 +11,7 @@ if os.path.exists('gitea'):
|
|||
os.unlink('gitea')
|
||||
|
||||
if len(sys.argv) > 1:
|
||||
version = sys.argv[1].split('.')
|
||||
version = sys.argv[1]
|
||||
elif os.path.exists('VERSION'):
|
||||
with open('VERSION') as fd:
|
||||
version = fd.read()
|
||||
|
|
Loading…
Reference in New Issue