This commit is contained in:
2025-07-20 23:15:26 -07:00
parent eb045fa94a
commit d1892a241f
+2 -2
View File
@@ -9,13 +9,13 @@ import json,sys,webbrowser,importlib,tomllib
def update(*args): def update(*args):
print('checking for updates...') print('checking for updates...')
with open(script_path()+'astrolobott.py','r') as file: with open(script_path()+'astrolobot.py','r') as file:
current_script=file.read() current_script=file.read()
urlretrieve( urlretrieve(
'https://github.com/sugoidogo/astrolobot/releases/latest/download/astrolobot.py', 'https://github.com/sugoidogo/astrolobot/releases/latest/download/astrolobot.py',
script_path()+'astrolobot.py' script_path()+'astrolobot.py'
) )
with open(script_path()+'astrolobott.py','r') as file: with open(script_path()+'astrolobot.py','r') as file:
updated_script=file.read() updated_script=file.read()
if current_script==updated_script: if current_script==updated_script:
print('up to date') print('up to date')