Correction with docker versioning (#130)
This commit is contained in:
parent
c3f4247c31
commit
e4e8754fc8
@ -777,9 +777,10 @@ def status():
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
with open ("version.txt", "r") as versionFile:
|
with open ("version.txt", "r") as versionFile:
|
||||||
hsh=versionFile.readlines()[0]
|
ver=versionFile.readlines()
|
||||||
update=versionFile.readlines()[1]
|
hsh = ver[0]
|
||||||
#tag=versionFile.readlines()[2]
|
update= ver[1]
|
||||||
|
tag=ver[2]
|
||||||
except:
|
except:
|
||||||
try:
|
try:
|
||||||
tag = str(subprocess.check_output(["git", "describe", "--tags"]).strip())[2:-1]
|
tag = str(subprocess.check_output(["git", "describe", "--tags"]).strip())[2:-1]
|
||||||
|
Reference in New Issue
Block a user