From 78e7342acfe48c27f6a8d4e8c32a78275be3e0a0 Mon Sep 17 00:00:00 2001 From: piair Date: Tue, 4 Apr 2023 21:26:40 +0200 Subject: [PATCH] last update of the night ? --- main.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 66e35e6..73ccb5b 100644 --- a/main.py +++ b/main.py @@ -169,9 +169,10 @@ def check_update(): print("Already up to date.") else : print(f"updating to {latest}") - os.system("git pull --rebase") - os.system("python3 -m pip install -r requirements.txt") - print("updated") + os.system("git reset --hard") + os.system("git pull") + os.system("python3 -m pip install -r requirements.txt > update.result") + print(f"updated to {latest}") LogPath = config["PATH"]["logpath"]