should be good for now
This commit is contained in:
parent
9995bc8e25
commit
0588180dda
6
main.py
6
main.py
@ -160,15 +160,15 @@ def check_update():
|
|||||||
except Exception as e :
|
except Exception as e :
|
||||||
print(e)
|
print(e)
|
||||||
return ()
|
return ()
|
||||||
f = open("./latest", 'r')
|
f = open("./version", 'r')
|
||||||
txt = f.readlines()[0].replace("\n","")
|
txt = f.readlines()[0].replace("\n","")
|
||||||
f.close()
|
f.close()
|
||||||
if (txt == latest) :
|
if (txt == latest) :
|
||||||
print("already up to date")
|
print("Already up to date.")
|
||||||
else :
|
else :
|
||||||
print(f"updating to {latest}")
|
print(f"updating to {latest}")
|
||||||
os.system("git pull")
|
os.system("git pull")
|
||||||
print(updated)
|
print("updated")
|
||||||
|
|
||||||
|
|
||||||
LogPath = config["PATH"]["logpath"]
|
LogPath = config["PATH"]["logpath"]
|
||||||
|
Loading…
Reference in New Issue
Block a user