Skip to content

Commit 5ebc3f6

Browse files
author
arch
committed
improve installer
1 parent a94c391 commit 5ebc3f6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

contrib/Installer/mtfg-ofs-extension-installer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,10 @@ def update(download_urls, latest, release_notes):
114114
download_url(download_urls[latest], zip_file)
115115

116116
try:
117+
if os.path.exists(dest_dir + "_update"):
118+
try: shutil.rmtree(dest_dir + "_update")
119+
except: error('Error while deleting old update Version (Restart you computer and try again)')
120+
117121
os.makedirs(dest_dir + "_update", exist_ok = True)
118122
with zipfile.ZipFile(zip_file) as zf:
119123
for member in tqdm(zf.infolist(), desc='Extracting '):

0 commit comments

Comments
 (0)