Skip to content

Commit ad88041

Browse files
author
arch
committed
fix installer
1 parent 8ea6da5 commit ad88041

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def process_exists(process_name):
8888

8989

9090
def install_lua_scripts(root_src_dir, extension_dir):
91+
if not os.path.exists(root_src_dir):
92+
error(str(root_src_dir) + " do not exists (corrupt install pack?)")
9193
for src_dir, _, files in os.walk(root_src_dir):
9294
dst_dir = src_dir.replace(root_src_dir, extension_dir, 1)
9395
if not os.path.exists(dst_dir):
@@ -156,7 +158,7 @@ def update(download_urls, latest, release_notes):
156158
error("min required installer version is " + str(min_required_installer_version))
157159

158160
shutil.move(mtfg_dir + "_update", mtfg_dir)
159-
install_lua_scripts(mtfg_dir, extension_dir)
161+
install_lua_scripts(os.path.join(mtfg_dir, "OFS"), extension_dir)
160162

161163

162164

0 commit comments

Comments
 (0)