From 293267e70c11fdd7bc3c8e1750da53de0e1ee1ed Mon Sep 17 00:00:00 2001 From: "sebastian.serfling" Date: Mon, 12 Aug 2024 15:08:04 +0200 Subject: [PATCH] create Folder latest / move Update out of Version to rename --- .idea/vcs.xml | 2 +- update_check.py | 8 ++++---- version | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.idea/vcs.xml b/.idea/vcs.xml index c64f40b..511bc4a 100644 --- a/.idea/vcs.xml +++ b/.idea/vcs.xml @@ -2,6 +2,6 @@ - + \ No newline at end of file diff --git a/update_check.py b/update_check.py index e740647..552644f 100644 --- a/update_check.py +++ b/update_check.py @@ -20,15 +20,15 @@ print(current_version) if current_version != new_version: try: - git.Repo.clone_from("http://172.17.1.251/sebastian.serfling/Agents.git",get_latest_release("","")) + git.Repo.clone_from("http://172.17.1.251/sebastian.serfling/Agents.git",f'../{get_latest_release("","")}') except: next - if os.path.isdir(f"{new_version}"): + if os.path.isdir(f"../{new_version}"): try: - shutil.move("latest", f"{current_version}") + shutil.move("latest", f"../{current_version}") except: print("folder not Found") - os.rename(f"{new_version}", "latest") + shutil.move(f"../{new_version}", "../latest") diff --git a/version b/version index 9f8e9b6..b123147 100644 --- a/version +++ b/version @@ -1 +1 @@ -1.0 \ No newline at end of file +1.1 \ No newline at end of file