From c6a24f1e5389f2af91dd37009726591759734d1b Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Fri, 9 Dec 2022 20:14:57 +0530 Subject: [PATCH] Cleanup once its pushed Signed-off-by: baalajimaestro --- encrypt.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/encrypt.py b/encrypt.py index 3973290..3fc70d6 100644 --- a/encrypt.py +++ b/encrypt.py @@ -12,6 +12,7 @@ from pathlib import Path from glob import glob import subprocess from time import time +from shutil import rmtree cwd = os.getcwd() path = Path(cwd) @@ -92,3 +93,6 @@ for i in file_list: repo.git.add(".") repo.index.commit(f"Commit as of {current_time}") repo.git.push("origin", "master", force=True) + +# Cleanup once you are done +rmtree(enc_path)