Cleanup once its pushed

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2022-12-09 20:14:57 +05:30
parent 33fa9ecbe5
commit c6a24f1e53
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -12,6 +12,7 @@ from pathlib import Path
from glob import glob from glob import glob
import subprocess import subprocess
from time import time from time import time
from shutil import rmtree
cwd = os.getcwd() cwd = os.getcwd()
path = Path(cwd) path = Path(cwd)
@ -92,3 +93,6 @@ for i in file_list:
repo.git.add(".") repo.git.add(".")
repo.index.commit(f"Commit as of {current_time}") repo.index.commit(f"Commit as of {current_time}")
repo.git.push("origin", "master", force=True) repo.git.push("origin", "master", force=True)
# Cleanup once you are done
rmtree(enc_path)