From 8ebf9fbb8d9a8edf21c8f4b0816be3ff78136e26 Mon Sep 17 00:00:00 2001 From: Logan Lipke Date: Wed, 20 May 2020 09:47:07 -0700 Subject: [PATCH] Added a few comments for clarification --- auto-install-gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto-install-gui.py b/auto-install-gui.py index 98b5cd23..cd50fca7 100755 --- a/auto-install-gui.py +++ b/auto-install-gui.py @@ -85,6 +85,7 @@ if newestWebFile['timestamp'] > newestDirFile['timestamp']: else: print("Found newer version of GUI") print(f"Downloading {newestWebFile['filename']} from {url}") +#=====ATTEMPT DOWNLOAD AND INSTALL========= subprocess.call(["curl", "-o", f"{filePath}{newestWebFile['filename']}", f"{url}{newestWebFile['filename']}"]) time.sleep(5) except Exception as e: @@ -112,7 +113,7 @@ if newestWebFile['timestamp'] > newestDirFile['timestamp']: except Exception as e: print(f"{e}\nInstallation failed. Please Try again.") sys.exit(1) - +#=========ATTEMPT TO RESTART GUI========== try: print("Killing current GUI process") os.system("pgrep java | xargs kill")