fix getting vesion number from command line
gitea/gitea-deb/pipeline/head This commit looks good Details

This commit is contained in:
Frédéric Péters 2023-02-26 16:07:24 +01:00
parent 621545b6cd
commit 442c393918
1 changed files with 1 additions and 1 deletions

View File

@ -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()