don't change back to script dir if not changed beforehand

This commit is contained in:
2021-06-01 13:44:03 +02:00
parent eeeab58ac9
commit 5863c42532

View File

@@ -130,7 +130,6 @@ def do_repo_work() -> None:
logging.debug("[PACCACHE] %s", p_res.stdout.decode(errors="ignore")) logging.debug("[PACCACHE] %s", p_res.stdout.decode(errors="ignore"))
if p_res.returncode: if p_res.returncode:
logging.error("[REPO/%s] Repo cleanup failed: %s", repo, p_res.stdout.decode(errors="ignore")) logging.error("[REPO/%s] Repo cleanup failed: %s", repo, p_res.stdout.decode(errors="ignore"))
os.chdir(sys.path[0])
def already_running() -> bool: def already_running() -> bool: