Cleanup once its pushed
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
33fa9ecbe5
commit
c6a24f1e53
1 changed files with 4 additions and 0 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue